View previous topic :: View next topic
|
Author |
Message |
akashsr_09
New User
Joined: 10 Apr 2021 Posts: 3 Location: India
|
|
|
|
suppose, Input file has data in the following way.
extradata......
extradata......
extradata......
Limit......255
Associations
FSA.GDG.BASE.APRIL01
extradata......
extradata......
extradata......
Limit......100
Associations
FSA.GDG.BASE.APRIL02
extradata......
extradata......
extradata......
Limit......255
Associations
FSA.GDG.BASE.APRIL03
extradata......
extradata......
extradata......
I want to check if Limit =255, if yes then load that line in an output file along with two more lines below it. Kindly tell how to do it ? |
|
Back to top |
|
 |
sergeyken
Senior Member

Joined: 29 Apr 2008 Posts: 1698
|
|
|
|
Under no circumstances you can do it while using:
1) JCL
2) VSAM
You CAN do it using the most of other tools in this world except those two mentioned above. For instance:
1) DFSORT or SYNCSORT (or ICETOOL/SYNCTOOL, too)
2) REXX
3) COBOL
4) PL/I
5) FileAid
6) Assembler
. . . hundreds of others . . .
Choose the one you prefer. |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 2973 Location: NYC,USA
|
|
|
|
Welcome!
Moved to DFOSRT unless you tell us you got SYNCSORT.
You can use IFTHEN=GROUP.. , BEGIN-END conditions ( using the rules you described) to assign IDs to those three set of records and in OUTFILE just INCLUDE IDs NE spaces.
You can search this forum and there are many examples of similar requirements. |
|
Back to top |
|
 |
|