[ RECORDS ][ EXAMPLES ][ OPTIONS] [ OUTPUT_KEYWORDS] [ STATEMENTS ]
To convert the SAS dataset SASDAT to a SUDAAN dataset use the following statements:
PROC RECORDS DATA=SASDAT FILETYPE=SAS NOPRINT;
OUTPUT/FILENAME=SUDDAT FILETYPE=SUDAAN REPLACE;
To print the values of the variables EXPECTED, OBSERVED and WTF1 on the first 20 records of the SUDAAN dataset R1DAT.SDN use the following statements:
PROC RECORDS DATA=R1DAT FILETYPE=SUDAAN;
PRINT EXPECTED OBSERVED WTF1/MAXREC=20;
To obtain a file contents summary from the SPSS data set SPSSDAT, use the following statements:
PROC RECORDS DATA=SPSSDAT FILETYPE=SPSS CONTENTS COUNTREC NOPRINT;
WARNING: Unless you specify the NOPRINT option on the PROC RECORDS statement, or a specific PRINT statement requesting a limited number of records and/or variables, SUDAAN will print all the variables on all records on the input data file.