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: 3051
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: 1249
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: 3051
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts To search DB2 table based on Conditio... DB2 1
Search our Forums:

Back to Top