Hi,
I would like to change the cycledate of a header using icetool utility. whenever, I am running the jcl, cols 7 to 14 should be replaced with new cycle date.
Input file 1:
1TRANS20080815 792
1TRANS20080815 792
1TRANS20080815 792
1TRANS20080815 792
1TRANS20080815 792
Input file 2: (Cycle date file)
20080820
Required Output:
1TRANS20080820 792
1TRANS20080820 792
1TRANS20080820 792
1TRANS20080820 792
1TRANS20080820 792
Please let me know how it could be possible.
Icetool utility to change a header file
-
- Posts: 1
- Joined: Sun Aug 17, 2008 3:57 am
- Skillset: Jcl, Cobol
- Referer: Website
- Frank Yaeger
- Global moderator
- Posts: 1079
- Joined: Sat Jun 09, 2007 8:44 pm
- Skillset: DFSORT, ICETOOL, ICEGENER
- Referer: Search
- Contact:
Re: Icetool utility to change a header file
You can use a DFSORT job like the following to do what you asked for:
Code: Select all
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD * input file2
20080820
/*
//SORTOUT DD DSN=&&S1,UNIT=SYSDA,SPACE=(TRK,(1,1)),DISP=(,PASS)
//SYSIN DD *
OPTION COPY
INREC BUILD=(C'CYCDATE,''',1,8,C'''',80:X)
/*
//S2 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SYMNAMES DD DSN=&&S1,DISP=(OLD,PASS)
//SORTIN DD * input file 1
1TRANS20080815 792
1TRANS20080815 792
1TRANS20080815 792
1TRANS20080815 792
1TRANS20080815 792
/*
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(7:CYCDATE)
/*
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
-
- Similar Topics
- Replies
- Views
- Last post
-
- 1
- 1252
-
by willy jensen
View the latest post
Sat Sep 04, 2021 12:51 am
-
- 24
- 4771
-
by Pedro
View the latest post
Wed Jan 04, 2023 5:59 am
-
- 2
- 1397
-
by PRDVCF
View the latest post
Thu Nov 17, 2022 9:58 pm
-
-
SUM and count of records by key, using SORT utility
by naveenkumar sudha » Mon May 09, 2022 10:11 pm » in DFSORT/ICETOOL/ICEGENER - 2
- 6539
-
by ssbylzh
View the latest post
Sat May 21, 2022 5:10 pm
-
-
-
SORT to add trailer record on change of key + Date
by Prashant_2021 » Fri Aug 27, 2021 11:04 pm » in DFSORT/ICETOOL/ICEGENER - 1
- 1673
-
by sergeyken
View the latest post
Sat Aug 28, 2021 11:15 pm
-