The INPUT statement is quite powerful and versatile. When creating SAS data sets from instream data or from raw data stored in external files, the INPUT statement should be used to describe how the raw data fields should be read and stored in the new SAS data set.
When creating SAS data sets from raw data stored in external files, using the INPUT statement with the INFILE statement is recommended.
When using instream data to create SAS data sets, the INPUT statement should be used with the DATALINES, CARDS or LINES statements.
When creating SAS data sets from raw data stored in external files, using the INPUT statement with the INFILE statement is recommended.
When using instream data to create SAS data sets, the INPUT statement should be used with the DATALINES, CARDS or LINES statements.