Joined: 01 Feb 2007 Posts: 123 Location: Hyderabad
Hi,
The purpose of this job is comparing the two files based on the key provided and write to corresponding output using splice. Here both the input files are of same record length. ie. LRECL=80.
But when ever my input files changes i need to make changes for TOOLIN, CTL1CNTL, CTL2CNTL, CTL3CNTL.
This job will run when my input file is of LRECL=80.
Is there any way so that i can use this job commonly for different LRECL of input files.
From Your jcl nothing has to be changed as far as DCB info is concerned,
but if Your record length changes I would not call it customization,
it could be a completely different record layout,
a completely different matching logic
and ...
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Bhaskar,
If you're looking for a way to use the job without knowing the LRECL - that will be difficult.
If you're looking for a way to make it easier to change the job for a known LRECL, that's relatively easy. You can change your DFSORT/ICETOOL job to use Symbols. The only change you'll have to make for a different LRECL is to change 80 to the new LRECL in the Record symbol (e.g. for LRECL=100, use Record,1,100). If the key changes, change the Key symbol accordingly.
Joined: 01 Feb 2007 Posts: 123 Location: Hyderabad
Hi Frank,
Thanks for you reply. It worked.
If you dont mind can u please explain me how the below part is done.
Code:
//SYMNAMES DD *
Key,1,10,CH
Record,1,80 ---> Set to 1,LRECL <------
Seqnum,*,8,ZD
Startcol,=
Id,*,2,CH
Id1,=,1
Id2,*,1
/*
I know about Key and Record as they are symbolic names.
But i didnt get how the seqnum, startcol, etc.. are written.
Could you please explain me about them.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Bhaskar,
I'm not quite sure what you're asking. Everything in SYMNAMES is a symbol statement. If you look in SYMNOUT, you'll see how DFSORT expanded the original Symbol statements:
Code:
------- ORIGINAL STATEMENTS FROM SYMNAMES -------
Key,1,10,CH
Record,1,80 1,LRECL
Seqnum,*,8,ZD
Startcol,=
Id,*,2,CH
Id1,=,1
Id2,*,1