For those who like a challenge, have a look at the following program and see
if you can find the problem(s).
It's designed to test your technical knowledge and skills, and perhaps to
teach you something new.
The objective is to read some data, keeping only valid records, as defined
in a format. All valid records should also be counted and the total written
to the log.
Should be simple.
/* Define valid values */
/* Read and keep valid records */
valid (keep = recid);
/* Continue only if a valid recid */
/* At end of file, print
/* Three records to read,
the first and third are valid */
The SAS System
[ Home ] [ Tech Teaser Solution ]