Sintax error in a JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Sintax error in a JCL

Postby jeugenio » Thu Dec 16, 2010 12:23 am

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?
jeugenio
 
Posts: 6
Joined: Mon Dec 13, 2010 10:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Sintax error in a JCL

 

Re: Sintax error in a JCL

Postby Robert Sample » Thu Dec 16, 2010 12:37 am

Did you submit the JCL with TYPRUN=SCAN on the job card? What did that show you?
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Sintax error in a JCL

Postby dick scherrer » Thu Dec 16, 2010 2:08 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Sintax error in a JCL

Postby Akatsukami » Thu Dec 16, 2010 2:18 am

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:
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Sintax error in a JCL

Postby steve-myers » Thu Dec 16, 2010 2:23 am

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.
steve-myers
Global moderator
 
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Sintax error in a JCL

Postby dick scherrer » Thu Dec 16, 2010 2:26 am

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). . . ;)
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Sintax error in a JCL

Postby steve-myers » Thu Dec 16, 2010 3:50 am

dick scherrer wrote:... Once upon a time it was called moonshine (or simply "shine") - Now it is Just Country Likker (JCL). . . ;)
LOL!
steve-myers
Global moderator
 
Posts: 1885
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Sintax error in a JCL

Postby NicC » Thu Dec 16, 2010 10:40 am

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?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Sintax error in a JCL

Postby Frank Yaeger » Thu Dec 16, 2010 9:58 pm

Q. Can DFSORT sort to a PDS member?


Yes as long as you specify the output dsn as pds(member).
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
User avatar
Frank Yaeger
Global moderator
 
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

Re: Sintax error in a JCL

Postby NicC » Thu Dec 16, 2010 11:53 pm

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!).
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post