Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Parsing and Listing a Subset of Records in Data Set

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools
View previous topic :: :: View next topic  
Author Message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Fri Feb 05, 2016 10:39 pm    Post subject: Parsing and Listing a Subset of Records in Data Set
Reply with quote

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?

Charles Wolters
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7932
Location: Bellevue, IA

PostPosted: Fri Feb 05, 2016 11:30 pm    Post subject:
Reply with quote

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.
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7254

PostPosted: Fri Feb 05, 2016 11:44 pm    Post subject: Reply to: Parsing and Listing a Subset of Records in Data Set
Reply with quote

Code:
 OPTION COPY
 INREC BUILD=(401,800)
Back to top
View user's profile Send private message
Charles Wolters

New User


Joined: 30 Mar 2011
Posts: 48
Location: United States

PostPosted: Wed Feb 10, 2016 3:17 am    Post subject: Reply to: Parsing and Listing a Subset of Records in Data Set
Reply with quote

Thank you Robert and Bill,

First, I was unaware that IEBGENER allows one to work with areas within the record. I have used DFSORT on occasion but never thought about using the COPY option.


Charles Wolters
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IBM Tools All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us