View previous topic :: View next topic
|
Author |
Message |
anonguy456
New User
Joined: 29 Jun 2021 Posts: 16 Location: India
|
|
|
|
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 |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
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 |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1350 Location: Bamberg, Germany
|
|
|
|
To cite another Forum member "Nothing of this has anything to do neither with JCL nor VSAM" |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3077 Location: NYC,USA
|
|
|
|
Yes .. it’s moved . |
|
Back to top |
|
|
|