I had read a document on regarding the DATE Constants we can use in Jcl.
I have tried the test jcl that was mentioned in it but it gave an error.
Can you please correct the error in it and give a brief explanation about this.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
Mane Sagar, when you post code, please enclose your code in CODE tags so that indents and formats are properly preserved. I edited your post and did that for you. I cannot tell if you added the proper indentation for the input parameters, so I also added them. Please go back and make sure that they are properly indented.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
The $ under the COPY operator shows you where the problem is. You have a blank between FROM and (SORTIN) that shouldn't be there. The COPY operator should look like this:
Code:
COPY FROM(SORTIN) USING(CTL1)
Also, the LRECL values you're specifying for the SORTx DDs do NOT match the OUTREC record lengths. Remove the DCB info and let DFSORT set it automatically, e.g.