For wide files, I like to use a variation on that:
INFILE FILE ;
The LIST statement will give you a ruler and make it easier to see how the characters within the raw data file line up. It will print in HEX format which makes it easier to detect special characters such as tabs.
Also note that it's easy to add to the DATA step along these lines:
if _n_ > 20 then stop;
You don't need to print the entire file if printing 20 lines is good enough.
SAS INNOVATE 2024
SAS is headed back to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team.
Interested in speaking? Content from our attendees is one of the reasons that makes SAS Innovate such a special event!