>DATA LRECL00(KEEP=L);
        INFILE IN LENGTH=L;
        INPUT @;
        OUTPUT;
RUN;
...

First: L would not be a written variable.
It should be:
DATA LRECL00(KEEP=LEN);
        INFILE IN LENGTH=L;
  INPUT @ ;
  LEN = L ;

Second: @ holds the line. You don't want that! You'll be stuck on the first 
record forever. It should be:
  INPUT; * this works *;

Third: you don't need the OUTPUT statement. If you leave it out, all records 
are automagically written.
If you specify it then if there are no conditions it's the same as not 
specifying it. With conditions, only if a record is explicitly output will it 
appear in the output file.

Other than that, a good and simple example.

-T

Coding in SAS since release 79.6

-teD

In God we Trust!
All others bring data!
 -- W. Edwards Deming

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to