JCL ERROR CN(INTERNAL



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

JCL ERROR CN(INTERNAL

Postby michaelg036 » Sat Mar 26, 2016 4:53 am

Hi, I new to mainframe programming and im trying to create a oreport to download my file. I have an file created but keep getting a jcl error. Thanks for your help in advance.

Mike


 000100 //LIT0053  JOB  UNIVER,CLASS=A,MSGCLASS=H,NOTIFY=&SYSUID          
 000140 //JOBLIB   DD   DSN=LIT0053.LYIT11.LOADLIB,DISP=SHR              
 000150 //RUNIT    EXEC PGM=C0910181                                      
 000151 //SYSPRINT DD   SYSOUT=*                                          
 000160 //ITRANS   DD   DSN=LIT0053.LYIT11.DATA.ITRANS.C0910181,DISP=SHR  
 000181 //OREPORT  DD   SYSOUT=*,DSN=LIT0053.LYIT11.DATA.OREPORT.C0910181
 000182 //*          DISP=(NEW,CATLG,DELETE),                            
 000183 //*          SPACE=(TRK,(1,1),RLSE),                              
 000184 //*          DCB=(RECFM=FBA,LRECL=80,BLKSIZE=800)
 

Coded
michaelg036
 
Posts: 3
Joined: Sat Mar 26, 2016 4:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL ERROR CN(INTERNAL

Postby Akatsukami » Sat Mar 26, 2016 5:29 am

In whatever spool management product ypur shop uses (SDSF, E)JES, etc.) will be a sysout for this job named JESYSMSG. Copy and paste its contents here, enclosed in Code tags.
"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: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: JCL ERROR CN(INTERNAL

Postby michaelg036 » Sat Mar 26, 2016 5:36 am

" STMT NO. MESSAGE
6 IEFC009I KEYWORD DISP IS MUTUALLY EXCLUSIVE WITH KEYWORD SYSOUT ON THE DD STATEMENT "

Thanks
michaelg036
 
Posts: 3
Joined: Sat Mar 26, 2016 4:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL ERROR CN(INTERNAL

Postby Akatsukami » Sat Mar 26, 2016 5:50 am

As you will read on page 167 of the z/OS V2R1.0 MVS JCL Reference, the DISP keyword is incompatible with the SYSOUT keyword, as the message states. Although you didn't specify the DISP keyword, you did specify a DSN (which you shouldn't have); this implicitly causes a DISP=(NEW,DELETE,DELETE) to be used. Determine if the output should go to the spool or to a data set, and code accordingly.
"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: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: JCL ERROR CN(INTERNAL

Postby michaelg036 » Sat Mar 26, 2016 5:57 am

I want to send the file to 'LIT0053.LYIT11.DATA.OREPORT.C0910181' this dataset. its for a output report I want to download to notepad. Do I need to change my 'DSN' part of the code?? sorry Im not to familiar with it.
michaelg036
 
Posts: 3
Joined: Sat Mar 26, 2016 4:45 am
Has thanked: 0 time
Been thanked: 0 time

Re: JCL ERROR CN(INTERNAL

Postby Akatsukami » Sat Mar 26, 2016 6:03 am

No, you need to delete "SYSOUT=*,". If the data set already exists, code thus:
//OREPORT  DD   DSN=LIT0053.LYIT11.DATA.OREPORT.C0910181,DISP=OLD

else, uncomment the three lines after the DSN.
"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: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: JCL ERROR CN(INTERNAL

Postby c62ap90 » Fri Apr 08, 2016 7:12 am

Looks like you are trying to use 2-different types of output at the same time. Pick one.

//OREPORT  DD SYSOUT=*

or
//OREPORT  DD DSN=LIT0053.LYIT11.DATA.OREPORT.C0910181,
//            DISP=(NEW,CATLG,DELETE),                            
//            SPACE=(TRK,(1,1),RLSE),                              
//            DCB=(RECFM=FBA,LRECL=80,BLKSIZE=800)


FYI – I would change the BLKSIZE to BLKSIZE=0 and let the system calculate your Blksize

Good luck Mike.
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 7 times

Re: JCL ERROR CN(INTERNAL

Postby Terry Heinze » Fri Apr 08, 2016 7:25 pm

If what you want is a dataset AND a report, output a dataset in one step and use IEBGENER or whatever to print the dataset.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: JCL ERROR CN(INTERNAL

Postby sam_jj12 » Wed Apr 27, 2016 11:28 pm

Hi Mike,

As mentioned above you need the output file in notepad..
why not you should go for FTP'ing the file.
your personal communications or any tso tool will have that..

Well its easy than coding.
sam_jj12
 
Posts: 18
Joined: Sat Nov 21, 2015 12:02 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post