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: 14
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: 2862
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: 747
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: 2862
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 next subsquent records based on ... DFSORT/ICETOOL 5
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts Split Records based on length COBOL Programming 3
No new posts split a name based on space in ASM PL/I & Assembler 9
No new posts copy all members in a roscoe library ... TSO/ISPF 9
Search our Forums:

Back to Top