Page 1 of 1

Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 12:23 am
by jeugenio
Hello,

I would like to know if this sentence has any sintax error

//SORT01   EXEC PGM=SORT,COND=(0,NE)                                   
//SORTIN   DD DSN=ORC.K3.LR.BDK.K3DWE203.K3CDN3.S1K3CDN3,DISP=SHR       
//SORTOUT  DD DSN=ORC7.D7.LR.LIBRERIA.RECOCINT(WE%%NUM.%%ODAY.%%OMONTH),
//            DISP=(NEW,CATLG,DELETE),                                 
//            SPACE=(TRK,(150,100),RLSE)                               
//SYSOUT   DD SYSOUT=*                                                 
//SYSPRINT DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  SORT FIELDS=COPY                                                     
  OUTREC FIELDS=(1,72,C'007')     



I think probably it could be by the name of file ORC7.D7.LR.LIBRERIA.RECOCINT(WE%%NUM.%%ODAY.%%OMONTH),

Could you help me?

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 12:37 am
by Robert Sample
Did you submit the JCL with TYPRUN=SCAN on the job card? What did that show you?

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 2:08 am
by dick scherrer
Hello,

I would like to know if this sentence has any sintax error
Yes it does - and the correct word is syntax :)

Are you stuck or have you found the reason for the jcl error.

In addition to the syntax, i believe there is also a design issue - trying to catalog a partitioned dataset for the sort output.

What is this "copy" supposed to accomplish?

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 2:18 am
by Akatsukami
dick scherrer wrote:Hello,

I would like to know if this sentence has any sintax error
Yes it does - and the correct word is syntax :)

Depends; are we talking JCL or an excise on whiskey? :mrgreen:

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 2:23 am
by steve-myers
In addition, if the SORTOUT DD statement is supposed to define a partitioned data set, the SPACE parameter is missing the number of directory blocks for the directory.

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 2:26 am
by dick scherrer
Depends; are we talking JCL or an excise on whiskey? :mrgreen:


Once upon a time it was called moonshine (or simply "shine") - Now it is Just Country Likker (JCL). . . ;)

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 3:50 am
by steve-myers
dick scherrer wrote:... Once upon a time it was called moonshine (or simply "shine") - Now it is Just Country Likker (JCL). . . ;)
LOL!

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 10:40 am
by NicC
Well, you cannot have % in a member nameso I assume that %%NUM, %%ODAY and %%OMONTH resolve, somehow, to something else. As long as 'something else' is not more than 6 bytes then the member name is OK.
Q. Can DFSORT sort to a PDS member?

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 9:58 pm
by Frank Yaeger
Q. Can DFSORT sort to a PDS member?


Yes as long as you specify the output dsn as pds(member).

Re: Sintax error in a JCL

PostPosted: Thu Dec 16, 2010 11:53 pm
by NicC
Thanks Frank. I was short of time to look up wherever I would have needed to look up (DFSORT User Guide, I guess) and would have forgotten to look up later (which is what happened!).