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

selectively copy based on condition


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anonguy456

New User


Joined: 29 Jun 2021
Posts: 16
Location: India

PostPosted: Fri Jan 14, 2022 4:37 pm
Reply with quote

Header from IP file I want to copy in both output files. OP file 1 should only have records that start with A while OP file 2 should have remaining records.
IP file:
header
AAA
DDD
FFF
AKV

OP file 1:
header
AAA
AKV

OP file 2:
header
DDD
FFF

I am clueless how can split records based on the above mentioned condition.
PLease help me out by giving some JCL that can achieve the above mentioned condition.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2916
Location: NYC,USA

PostPosted: Fri Jan 14, 2022 6:23 pm
Reply with quote

Please use code tags .. see the similar requirements and solutions provided in past, I just found by simple search which you could easily do.
ibmmainframes.com/about58625.html

In your case just include Header as well along with Detailed Records.
Back to top
View user's profile Send private message
Joerg.Findeisen

Active Member


Joined: 15 Aug 2015
Posts: 842
Location: Bamberg, Germany

PostPosted: Fri Jan 14, 2022 10:57 pm
Reply with quote

To cite another Forum member "Nothing of this has anything to do neither with JCL nor VSAM" icon_rolleyes.gif
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2916
Location: NYC,USA

PostPosted: Sat Jan 15, 2022 4:19 am
Reply with quote

Yes .. it’s moved .
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 copy a PDS to a PS and then co... JCL & VSAM 8
No new posts Output LREC based on specific character DFSORT/ICETOOL 22
No new posts Splitting group records based on deta... DFSORT/ICETOOL 8
No new posts DB2, write report based on query outp... DB2 1
No new posts Replace a string in a VB file and cop... DFSORT/ICETOOL 2
Search our Forums:

Back to Top