View previous topic :: View next topic
|
Author |
Message |
sakthi_ksv
New User
Joined: 20 Jul 2006 Posts: 48 Location: Chennai
|
|
|
|
My requirement is, to provide a empty input file to a sort step which is the first step in job with catalogued proc. First I coded like this.
SORTIN DD DUMMY
But the sort card used in this step sorts the input file based on a character in the input file. The sort card is
OMIT COND=(1,1,CH,EQ,C'9')
SORT FIELDS=(2,6,PD,A)
OUTFIL OUTREC=(1:2,6,PD,TO=ZD,LENGTH=9,71X)
So it throws the error as 'INVALID DATA SET ATTRIBUTES SPECIFIED SORTIN RECFM'.
Then I tried overriding the sort card, ie I commented out the the sort card and gave like this.
SYSIN DD *
SORT FIELDS=COPY
But in catalogued proc we cant use DD *. That is what the error I got when I executed the job with the sort card like this.
So what simple step can I give to get my requirement.
Sakthivel. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
If your requirement is just to create an empty output file without any abend/error by passing dummy input file,then here it is
In the JCL where you call the cataloged proc
override as(if stepname is R010)
Code: |
R010.SORTIN DD DUMMY
R010.SYSIN DD DSN=******.TEST.CNTLCARD(COPYFILE) |
In the Control card pds ******.TEST.CNTLCARD(COPYFILE), have it as
|
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
One more option is code DCB parameter for the DUMMY file
Code: |
//SORTIN DD DUMMY,
// DCB=(RECFM=FB,LRECL=1800) |
Here I have assumed LREC to be 1800.Use per your requirement
No need to change the control card for this method |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Muthu,
Did you try your resolution before posting it? |
|
Back to top |
|
|
sakthi_ksv
New User
Joined: 20 Jul 2006 Posts: 48 Location: Chennai
|
|
|
|
Thanks Muthuvel, It worked as per your second suggestion. that is my requirement too, that i should not modify the sort card. thanks a ton.
But I think we have to also give BLKSIZE parameter for the DUMMY DSN. becuase it gave me error saying INVALID DATASET ATTRIBUTE - BLKSIZE' . After giving BLKSIZE it ran successfully.
Thanks once again for your timely help. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
It worked fine for me |
|
Back to top |
|
|
|