![]() In order to read external data files, you have to use the INFILE statement. The DATALINES statement (replacing the old CARDS statement) indicates that data lines follow in a DATA step. Thus, the INPUT statement for the next iteration of the DATA step continues to read the same record (line). a double trailing holds the input record for the execution of the next INPUT statement across iterations of the DATA step.Thus, the next INPUT statement reads from the same record (line). a single trailing holds an input record for the execution of the next INPUT statement within the same iteration of the DATA step.A informat is an instruction that SAS uses to read data into variables.Column specifications specify the columns of the input record that contain the value to read.Line pointer controls such as #n and / move the input pointer to a specified line in the input buffer.Column pointer controls such as and +n move the input pointer to a specified column in the input buffer.You need to provide variable names followed by $ (indicating a character value), pointer control, column-specifications, informat, and/or line hold specifiers (i.e., and in an INPUT statement. The INPUT statement describes the arrangement of a target data to be read in a DATA step. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |