Page 1 of 1

Continuation Error

PostPosted: Thu Aug 20, 2009 12:00 am
by CPANTX
Many times JCL show continuation error.
Example:

When you write like this, it shows continuation error.
//SORTOUT  DD DSN=CPANTX.FILE.LS,               
//            DISP=(,CATLG,DELETE),UNIT=UNIT1,
//            SPACE=(TRK,(2,1),RLSE)


If you edit the above like below, it is fine.
//SORTOUT  DD DSN=CPANTX.FILE.LS,               
//            DISP=(,CATLG,DELETE),           
//            UNIT=UNIT1,                       
//            SPACE=(TRK,(2,1),RLSE)


This kind of situation occurs many times in different JCLs with different statements in different contexts. I can understand that probably some piece of code expands internally and causes continuation error. Is it so? How can we avoid this?

Re: Continuation Error

PostPosted: Thu Aug 20, 2009 12:35 am
by MrSpock
CPANTX wrote:When you write like this, it shows continuation error.
//SORTOUT  DD DSN=CPANTX.FILE.LS,               
//            DISP=(,CATLG,DELETE),UNIT=UNIT1,
//            SPACE=(TRK,(2,1),RLSE)



Uh, no it doesn't. That code as shown is syntactically correct. Both will work equally well.

The only way you'd see a continuation error is if the continued parameters are beyond column 16.

Re: Continuation Error

PostPosted: Thu Aug 20, 2009 1:23 am
by dick scherrer
Hello,

This kind of situation occurs many times in different JCLs with different statements in different contexts
For us to be able to help, you need to post jcl that has actually failed along with the diagnostic info generated by the failed run.

Re: Continuation Error

PostPosted: Sun Aug 23, 2009 4:14 pm
by Anuj Dhawan
Or perform the syntax check (JEM/JSCAN) and show us the what comes at your screen as is.

Re: Continuation Error

PostPosted: Mon Aug 31, 2009 8:49 pm
by CPANTX
This is a portion from IEBCOPY utility program.
000011 //SYSIN    DD *     
000012   COPY INDD=SYSUT1,
000013        OUTDD=SYSUT2
000014 /*

The above code gives following error:
IEB1035I CPANTXJ   STEP01   09:05:03 MON 31 AUG 2009 PARM=''
  COPY INDD=SYSUT1,                                         
IEB107I INVALID CONTINUATION                               
IEB118I CONTROL STATEMENT ERROR                             
       OUTDD=SYSUT2                                         
IEB115I END OF FILE ON SYSIN                               
IEB151I JOB HAS TERMINATED WITH ERROR(S)                   
IEB147I END OF JOB - 8 WAS HIGHEST SEVERITY CODE


While the modified code below runs fine:
000011 //SYSIN    DD *                   
000012   COPY INDD=SYSUT1,OUTDD=SYSUT2   
000013 /*


Regards,
CPANTX

Re: Continuation Error

PostPosted: Tue Sep 01, 2009 3:09 am
by dick scherrer
Hello,

First, you posted a problem with a jcl continuation. This post is not jcl, but rather is a problem with control statement input. . .

This is a portion from IEBCOPY utility program.
You need to post all of the jcl and control statements along with all of the output diagnostic info created by that particular run. When we have all of the pieces from the same situation, someone should be able to clarify.

Re: Continuation Error

PostPosted: Tue Sep 22, 2009 11:33 pm
by Anuj Dhawan
Make sure you are following the appropriate rules for continuation:

http://publibz.boulder.ibm.com/cgi-bin/ ... 5507&CASE=