Write a previous line if condition met using DFSORT/ICETOOL



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Write a previous line if condition met using DFSORT/ICETOOL

Postby Daouchiche » Sat Apr 25, 2020 1:04 am

Hi ,

Need to read a member into a library and when a condition is met write the previous line.

Example:

WWWWWW
MFJ092810
LDUMMY
HHL200322
MFJ091510
LDUMMY
VV1254VFDFF

Read the member and when the line is 'LDUMMY' write into an Fb file le previous line 'MFJ092810' without the first caracters giving only 'FJ092810'.

Result wil be :

FJ091510
FJ092810

Best Regards
Daouchiche
 
Posts: 17
Joined: Thu Jul 24, 2014 9:36 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Write a previous line if condition met using DFSORT/ICET

Postby sergeyken » Sat Apr 25, 2020 7:01 pm

Classical questions:

1) Did you hear that code tags must be used to present any code?

2) What did you try by yourself, so far?

3) What “read a member into a library” stands for? And: how any “library” is related to DFSORT/SYNCSORT?
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 408
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 6 times
Been thanked: 40 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post