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: 3077
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

Senior Member


Joined: 15 Aug 2015
Posts: 1350
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: 3077
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 Copy only TEXT or String from a record SYNCSORT 4
No new posts Add condition to a FINDREP SORT card DFSORT/ICETOOL 4
No new posts Sort based on the record type DFSORT/ICETOOL 1
No new posts Use Copy Utility DB2 7
No new posts To Omit records based n SORT condition DFSORT/ICETOOL 6
Search our Forums:

Back to Top