Continuation Error



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

Continuation Error

Postby CPANTX » Thu Aug 20, 2009 12:00 am

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?
CPANTX
 
Posts: 14
Joined: Sat Mar 21, 2009 11:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Continuation Error

 

Re: Continuation Error

Postby MrSpock » Thu Aug 20, 2009 12:35 am

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.
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times

Re: Continuation Error

Postby dick scherrer » Thu Aug 20, 2009 1:23 am

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.
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: Continuation Error

Postby Anuj Dhawan » Sun Aug 23, 2009 4:14 pm

Or perform the syntax check (JEM/JSCAN) and show us the what comes at your screen as is.
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: Continuation Error

Postby CPANTX » Mon Aug 31, 2009 8:49 pm

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
CPANTX
 
Posts: 14
Joined: Sat Mar 21, 2009 11:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Continuation Error

Postby dick scherrer » Tue Sep 01, 2009 3:09 am

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.
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: Continuation Error

Postby Anuj Dhawan » Tue Sep 22, 2009 11:33 pm

Make sure you are following the appropriate rules for continuation:

http://publibz.boulder.ibm.com/cgi-bin/ ... 5507&CASE=
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post