IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Split input file into multiple files based on the data


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Senior Member


Joined: 29 Apr 2008
Posts: 2023
Location: USA

PostPosted: Mon Apr 01, 2019 4:30 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
Search our Forums:

Back to Top