Converts BMDP, OSIRIS system files, and SPSS export files to SAS data sets.
Windows specifics: | All |
is required and can be one of the following:
converts into a SAS data set the first member a BMDP save file created under DOS. Here is an example:
filename save 'c:\myidr\bmdp.dat'; proc convert bmdp=save; run;
filename save 'c:\mydir\bmdpl.dat'; proc convert bmdp=save(code=judges content=data); run;
specifies a fileref for the OSIRIS file to be converted into a SAS data set. If you use this product specification, you must also use the DICT= option, which specifies the OSIRIS dictionary to use.
specifies a fileref for the SPSS export file to be converted into a SAS data set. The SPSS export file must be created by using the SPSS EXPORT command from any operating environment.
specifies a fileref of the dictionary file for the OSIRIS file. The DICT= option is valid only when used with the OSIRIS product specification.
gives the number of the observation where the conversion is to begin. This option enables you to skip over observations at the beginning of the OSIRIS or SPSS PC system file.
specifies the number of the last observation to convert. This option enables you to exclude observations at the end of the file.
names the SAS data set created to hold the converted data. If the OUT= option is omitted, SAS still creates a Work data set and automatically names it DATAn, just as if you omitted a data set name in a DATA statement. If it is the first such data set in a job or session, SAS names it DATA1, the second is DATA2, and so on. If the OUT= option is omitted or if you do not specify a two-level name (including a libref) in the OUT= option, the converted data set is stored in your Work data library and by default it is not permanent.
filename myfile 'myspss.por'; proc convert spss=myfile out=temp; run;
libname myfile spss 'myspss.por'; data temp; set myfile._first_; run;