Page 1 of 2

Syntax errors

PostPosted: Mon Jan 14, 2013 11:19 pm
by nameexists
Hi I am trying to find the errors in the code, syntax etc. Can anyone help me.? thanks

//LIT1234 JOB 123,5861,'MIKE',NOTIFY=, 00001
// MSGCLASS=X,CLASS=A,MSGLEVEL=(1,1),REGION=2048K, TIME=0,2 00002
//STEP1 EXEC PGM=IEFBR14 00003
//SYSPRINT DD SYSOUT=* 00004
//DELMK DD DSN=IECI17Z.LYIT.OREPORT 00005
// DISP=(,RENAME,DELETE), 00006
// SPACE=(TRK,0) 00007
//STEP2 EXEC PGM=VSAMPROG,COND=(0,GTE) 00008
//STEPLIB DD DSN=IECI17Z.LYIT.LOADLIB,DISP=SHR 00009
//GO.PRINTOUT DD SYSOUT=* 00010
///GO.SYSPRINT DD SYSOUT=* 00011
//GO SYSOUT DD SYSOUT=* 00012
//VMAST DD DSN=IECI17Z.LYIT.VSAM.MASTER,DISP=SHR 00013
//ITRANS DD DSN=IECI170.CI17A.LYIT001234.T1.ITRANS,DISP=OLD 00014
//*REPORT DD SYSOUT=*,DCB=(RECFM=FBA,LRECL=80,BLKSIZE=0) 00015
//OREPORT DD=DSN=IECI17Z.LYIT.OREPORT,DISP=(NEW,CATLG,DELETE), 00016
// SPACE=(TRK,(1,1),RLSE), 00017
// DCB=(RECFM=FBA,LRECL=81,BLKSIZE=0) 00018
// 00019
/* 00020

Re: Syntax errors

PostPosted: Mon Jan 14, 2013 11:30 pm
by Akatsukami
  1. Enclose your JCL in Code tags when posting.
  2. Run the job with the TYPRUN=SCAN parameter on the job card.
  3. Read the fine manual

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 12:12 am
by Robert Sample
A casual glance indicates you have DISP=(,RENAME,DELETE) specified. You REALLY need to read the JCL Language Reference manual from the IBM Manuals link at the top of this page since you will find that RENAME is not a valid subparameter of DISP.

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 12:28 am
by c62ap90
Can you do JCK or JEM on command line for JCL Syntax?

Just looking at the JCL quickly…
Line 00001
No userid after "NOTIFY="
Line 00002
Comma after ''REGION=2048K," should not be there
Line 00006
RENAME looks incorrect. Should be CATLG, PASS, DELETE, KEEP, or UNCATLG.
Line 00006
COND format does not look correct.
Line 00012
You either need a dot after "GO" or take "GO " out.
LINE 00020
After end of job "//" so the "/*" is not correct.

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 3:02 am
by NicC
why not read and understand the messages produced? Why should we try and work out what the error messages are? Why did you not post the error messages? Why can you not resolve the errors yourself? You are paid to do so and we are not. We will do your work for you but we would expect you to pay us - probably more than what you are getting.

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 7:27 pm
by nameexists
NicC wrote:why not read and understand the messages produced? Why should we try and work out what the error messages are? Why did you not post the error messages? Why can you not resolve the errors yourself? You are paid to do so and we are not. We will do your work for you but we would expect you to pay us - probably more than what you are getting.


Thanks for the reply very helpful. You ******* bellend
Expletive Deleted

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 8:23 pm
by dick scherrer
Hello,

Hi I am trying to find the errors in the code, syntax etc. Can anyone help me.?
Ok as a start.

Then you provide nothing of use and actually expect people here to not only help, but determine what you have done incorrectly (and tell you how to fix it).
Thanks for the reply very helpful. You f*****g b*****d
How pathetic :evil:

why not read and understand the messages produced? Why should we try and work out what the error messages are? Why did you not post the error messages? Why can you not resolve the errors yourself?
If you are unwilling to provide information needed to help you, we cannot help. That some have tried is kind of them, but your post was not worth the technical replies.

If you want help and post the requested info, someone may have suggestions.

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 8:46 pm
by nameexists
dick scherrer wrote:Hello,

Hi I am trying to find the errors in the code, syntax etc. Can anyone help me.?
Ok as a start.

Then you provide nothing of use and actually expect people here to not only help, but determine what you have done incorrectly (and tell you how to fix it).
Thanks for the reply very helpful. You f*****g b*****d
How pathetic :evil:

why not read and understand the messages produced? Why should we try and work out what the error messages are? Why did you not post the error messages? Why can you not resolve the errors yourself?
If you are unwilling to provide information needed to help you, we cannot help. That some have tried is kind of them, but your post was not worth the technical replies.

If you want help and post the requested info, someone may have suggestions.


I am totally new to this, So I may make mistakes when posting. But it is not the first time I got a rude reply from know it alls on here. So if you speak rude to me you'll get it back.

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 9:03 pm
by dick scherrer
Hello,

I am totally new to this, So I may make mistakes when posting. But it is not the first time I got a rude reply from know it alls on here. So if you speak rude to me you'll get it back.
Unfortunately, it is often difficult to tell the difference between a mistake and when someone is being inconsiderate/lazy/whatever.

When a Helper points this out, it is Never proper to reply with the F-word and similar . . .

Re: Syntax errors

PostPosted: Tue Jan 15, 2013 9:40 pm
by enrico-sorichetti
I am totally new to this,


being new should not prevent You from using some good sense and good manners

whenever an error occurs proper good sense and good manners dictate to post the messages received
in order to help people who spend their time to help You at no charge
to understand what is going on and provide suggestions

refusing to post such info will result in the appropriate nasty comments
and no help for the current and probably also for Your future requests
whether You like it or not

( on this forum a user might tag Your ID as a <foe> , effectively making You and Your messages invisible )