Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Split input file into multiple files based on the data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
srini24

New User


Joined: 14 Feb 2017
Posts: 12
Location: India

PostPosted: Sat Mar 30, 2019 9:39 pm    Post subject: Split input file into multiple files based on the data
Reply with quote

Hi,
I have an input PS file with data of JESJCL,JESMSGLG,JESYSMSG,SYSOUT together.
I want to split the input PS file into multiple PS files having JESJCL,JESMSGLG etc seperately in each file.
I could not able to find any specific sort condition to split into multiple files based on the data present in the input file but only with the number of lines.

Any ideas to split the file into multiple files based on data present in it?

Thank you.
Back to top
View user's profile Send private message

sergeyken

Active Member


Joined: 29 Apr 2008
Posts: 627
Location: Maryland

PostPosted: Mon Apr 01, 2019 4:30 am    Post subject:
Reply with quote

To detect begin/end of each of JESJCL, JESMSGLG, JESYSMSG parts you can use WHEN=GROUP to detect specific lines for those parts (check your JES output; easy to detect).

Next, use 4 OUTFIL statements to select lines of first 3 groups into separate FNAMES=DDNAME, and all the rest will be directed by the fourth OUTFIL into the last FNAMES=alltherest
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identifying Packed Decimal data in a ... sojivarkey TSO/ISPF 1 Sat Dec 07, 2019 5:36 am
No new posts Reading the CSV data in COBOL and mov... wik123 COBOL Programming 4 Tue Dec 03, 2019 5:13 pm
No new posts Substring for 2 files in Sort JCL Shubhendu Chakraborty DFSORT/ICETOOL 1 Wed Nov 20, 2019 11:07 am
No new posts Substring for 2 files in Sort JCL Shubhendu Chakraborty SYNCSORT 5 Wed Nov 20, 2019 11:04 am
No new posts Is multiple program names allowed in ... Sakthidevi PL/I & Assembler 1 Tue Nov 19, 2019 11:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us