firedotwater
Systems Engineer
Hello everyone I have a small rexx data manipulation issue. I have a huge file with a lot of information and I want to only print / save the my necessary information from the file.
With this I will receive my wanted information, but now especially in the date I have multiple entries with the same date. Now I am confused how can I merge /purge them together? I tried to make an easy counter but it didn’t work quite like I wanted.
Could someone give me an hint or a direction?
Code:
/*REXX*/
file = "my.dsn.to.file"
"ALLOC FI(file) DSN('"file"') SHR"
"EXECIO * DISKR file(STEM file. FINIS"
"FREE FI(file)"
DO x = 1 TO file.0
JNAME = SUBSTR(file.x,2,9)
DATE = SUBSTR(file.x,20,10)
RC = SUBSTR(file.x,94,4)
SAY DATE JNAME RC
END
With this I will receive my wanted information, but now especially in the date I have multiple entries with the same date. Now I am confused how can I merge /purge them together? I tried to make an easy counter but it didn’t work quite like I wanted.
Could someone give me an hint or a direction?