IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Where to find the JCL Syntax errors


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreenivasg

New User


Joined: 13 Jul 2006
Posts: 2
Location: hyderabad

PostPosted: Thu Jul 13, 2006 10:00 pm
Reply with quote

hi,
this is sreenivas,
i am getting the problem of jcl syntax errors
how can we find them
is there any method to find them, pls answer my problem
Back to top
View user's profile Send private message
cpuhawg

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Thu Jul 13, 2006 10:15 pm
Reply with quote

Scroll to the bottom of the job. Look for error messages. They usually tell what the error is and which numeric JCL is being affected.

Code:

12.35.47 JOB24032 ---- THURSDAY,  13 JUL 2006 ----                     
12.35.47 JOB24032  IRR010I  USERID XX1234   IS ASSIGNED TO THIS JOB.   
12.35.47 JOB24032  IEFC452I XX1234E - JOB NOT RUN - JCL ERROR  214     
------ JES2 JOB STATISTICS ------                                       
           19 CARDS READ                                               
           30 SYSOUT PRINT RECORDS                                     
            0 SYSOUT PUNCH RECORDS                                     
            1 SYSOUT SPOOL KBYTES                                       
         0.00 MINUTES EXECUTION TIME                                   
        1 //XX1234  JOB  (4275,3096),'99 ANALYST',CLASS=I,MSGCLASS=R,
          //   NOTIFY=XX1234                                           
        2 //DELUSER EXEC PGM=IKJEFT01                     
        3 //SYSTSPRT DD SYSOUT=*,DCB=BLKSIZE=133,         
        4 //SYSTSIN  DD *,DLM=AA                           
          /*                                               
 STMT NO. MESSAGE                                         
        3 IEFC621I EXPECTED CONTINUATION NOT RECEIVED
     


The error is 3 IEFC621I EXPECTED CONTINUATION NOT RECEIVED

It affects JCL card # 3.
3 //SYSTSPRT DD SYSOUT=*,DCB=BLKSIZE=133,

The problem is there is an extra comma on the end of the statement.
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Sun Jul 16, 2006 2:37 pm
Reply with quote

Hi,
May be this can help you a bit. Whenever you have a JCL before submitting try to give JEM. Tbis will figure out the maximum return code for your JCL.
It will also show you the places where you will face the errors.

U can also check the SYSMSG, give f not in the command line and you will find the step which is not executed, and the possible reason for not executing the step.

Regards,
Diwakar.

Nobody is perfect. I am Nobody
Back to top
View user's profile Send private message
azshukla

New User


Joined: 31 May 2006
Posts: 9
Location: Pune

PostPosted: Thu Aug 10, 2006 1:54 pm
Reply with quote

Try giving !JCK on the command line...
Back to top
View user's profile Send private message
stly
Warnings : 1

New User


Joined: 25 Jul 2005
Posts: 93

PostPosted: Tue Aug 22, 2006 3:30 pm
Reply with quote

method-1: give JEM in the command line of the JCL

method2-subit the jcl n look for the errors in the SDSF(JESYSMSG)


correct me if i m wrong
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Tue Sep 19, 2006 3:04 pm
Reply with quote

hi there,

u can also give a JSCAN on the command line. then scroll to the bottom of the job to see the errors listed out...
Back to top
View user's profile Send private message
diwa_thilak

Active User


Joined: 13 Jul 2006
Posts: 205
Location: At my desk

PostPosted: Thu Sep 21, 2006 10:49 am
Reply with quote

hi,
I tried !JCK and !JSCAN. But i could not excute the commands.
Please do elaborate the place where these commands need to be executed.

Diwakar.

Nobody is Perfect. I am Nobody.
Back to top
View user's profile Send private message
vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 63
Location: Chennai

PostPosted: Thu Sep 21, 2006 11:32 am
Reply with quote

Hello,

Edit the Jcl and give the !jck command at Command promt

for JSCAN, it has to write in JCL, in the job card TYPRUN=JSCAN has to specify......

Regards,
Vijay
Back to top
View user's profile Send private message
azshukla

New User


Joined: 31 May 2006
Posts: 9
Location: Pune

PostPosted: Thu Sep 21, 2006 4:05 pm
Reply with quote

!jck will work only in the edit window.. and only checks for the syntex errors.. or you can look for them in the spool also... if you can't use it might be your JES doesn't support it. try giving JEM then
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Sep 24, 2006 10:15 pm
Reply with quote

All of these mentioned are 3rd party products (not offered by IBM). Try contacting your system people and ask if your shop uses any JCL check 3rd party product.

If not go w/the HAWG's suggestion.
Back to top
View user's profile Send private message
Srilaxmi.Challa

New User


Joined: 19 Oct 2006
Posts: 6

PostPosted: Thu Oct 19, 2006 10:42 pm
Reply with quote

I think u can use PREP at the command line


pls correct me if im wrong.
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Fri Oct 20, 2006 12:32 am
Reply with quote

One more way to JCL check, is via CA7

Code:

LJCK,JOB=JOBNAME

Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Mon Oct 23, 2006 10:43 am
Reply with quote

i think best way is submit the job and check the jesmsg....as told by cpuhawg, as PREP, JEM and JCk are vendor specific...
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Oct 23, 2006 2:56 pm
Reply with quote

In the jobcard; TYPRUN=SCAN and submit
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
Search our Forums:

Back to Top