SAS Learning Post

Technical tips and tricks from SAS instructors, authors and other SAS experts.
Learn SAS
Jim Simon 3
DATA STEP text file tricks

When reading a text file (common extensions: TXT, DAT; or, for the adventurous: HTML) with the DATA STEP, you should always view several lines from the text file, and compare to the record layout, before completing the INPUT statement.  There are many ways to view a text file.  I use

1 86 87 88 89 90 204