![]() Chapter Contents |
![]() Previous |
![]() Next |
| LIST |
| Valid: | in a DATA step |
| Category: | Action |
| Type: | Executable |
| Syntax | |
| Without Arguments | |
| Details | |
| Comparisons | |
| Examples | |
| See Also |
Syntax |
| LIST; |
The LIST statement causes the input data records for the observation being processed to be written to the SAS log.
| Details |
In the SAS log, a ruler that indicates column positions appears before the first record listed.
| Comparisons |
| Examples |
This example uses the LIST statement to write to the SAS log any input records that contain missing data.
data employee; input ssn 1-9 #3 w2amt 1-6; if w2amt=. then list; datalines; 23456789 JAMES SMITH 356.79 345671234 Jeffrey Thomas . ;
RULE:----+----1----+----2----+----3----+----4----+----5----+---- 9 345671234 10 Jeffrey Thomas 11 . |
The numbers 9, 10, and 11 are line numbers in the SAS log.
| See Also |
Statement:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.