Thursday, March 31, 2011

Comparisons among infile options (missover truncover stopover scanover)

TRUNCOVER reads file when the last variable has varying lengths.

FLOWOVER causes an INPUT statement to continue to read the next input data record if it does not find values in the current input line for all the variables in the statement, which is default.

STOPOVER causes the DATA step to stop if an INPUT statement reaches the end of the current record without find values for all variables in the statement.

SCANOVER causes the INPUT statement to scan the input data records until the character string that is specified in the @’character-string’ expression is found.

MISSOVER prevents an INPUT statement from reading a new input data record if it does not find values in the current input line for all the variables in the statement. When an INPUT statement reaches the end of the current input data record, variables without any values assigned are set to missing.

No comments: