sd2xpt

Creates a SAS transport file from SAS datasets

%sd2xpt (inpath=path location,
                    outpath=
path location,
                    outfile=
file name,
                   
select=dataset selection,
                    runcode=
file name,
                    backcode=file name);

 

Where

Is Type...

And represents...

inpathCPhysical disk path location of source SAS datasets.
outpathCPhysical disk path location for new transport file.
outfileCNew transport file name (i.e. myfile.xpt or *).
selectC (optional)List of datasets found in the outpath directory.  This is intended for subsetting the selection of datasets in outpath.
runcodeC (optional)File name for a new file which contains code generated.
backcodeC (optional)File name of a new file which contains code to convert transport file back to SAS datasets.

Details
This tool will convert SAS datasets into a transport file.  It has the following special options:

  • A single transport file or multiple transport files (one per SAS dataset).  This is specified in the outfile parameter.  If a wildcard asterisk (*) is chosen, multiple files will be created.
  • The program code can be generated and stored in a separate file, specified in the runcode option.  This gives the option of re-running the data conversion.
  • The program code used to convert the transport file back into SAS datasets can be generated in a separate file specified by the backcode parameter.  This will give the recipient of the transport file the option to convert transport files back to datasets.

Example

%sd2xpt (inpath=c:\sasdata,
                    outpath=
c:\trandata,
                    outfile=
transfile.xpt);
 
    CDISC Builder - CDISC Data Tools Software,  Meta-Xceed Inc.© 2009
Bookmark and Share