Joined: 30 Mar 2011 Posts: 48 Location: United States
Every quarter we receive a data set (fixed block, record length = 1200) and using SAS we read just the first 400 characters. My group leader informed that there is another division that may have need of these data sets but they would have need of the data in characters 401 through 1200. He asked me to prepare a listing of the contents of positions 401 through 1200 for the first 200 records.
This is a straightforward task in SAS but the question of how to accomplish this task using an IBM tool or utility is picking at my brain. Could someone give me a starting point?
Joined: 06 Jun 2008 Posts: 8491 Location: Dubuque, Iowa, USA
If I had to do this without SAS, I'd use IEBGENER to put the last 800 bytes into a new data set (temporary, probably) and then use a second IEBGENER step to copy the short records to a SYSOUT data set. IEBGENER's GENERATE and RECORD statements allow you to work with areas of data within records.