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: 15
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/ICETOOL

 

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?
sergeyken
 
Posts: 100
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 2 times
Been thanked: 10 times


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post