Page 1 of 1

misplaced dd statement error

PostPosted: Thu Apr 25, 2019 10:10 am
by chaitanyach31
when i tried to run it i got a error message as 00.43.37 JOB06538 $HASP165 KC03DB2C ENDED AT ZOSKCTR - JCL ERROR CN(INTERNAL).someone please help modify it.
//JOB01 JOB 1,CHAITU,MSGCLASS=A,CLASS=A,NOTIFY=&SYSUID  
//STEP1 EXEC PGM=IEHLIST                                
//SYSPRINT DD SYSOUT=A                                  
//DD2 DD UNIT=3390,VOLUME=SER=KCTR53,DISP=SHR          
//SYSIN DD *                                            
    LISTVTOC VOL=3390=KCTR53,INDEXDSN=SYS1.VTOCIX.TOTTSB
/*                                                      

Re: misplaced dd statement error

PostPosted: Thu Apr 25, 2019 11:43 am
by expat
Can you show us the output ................ it's usually far more useful than what you tell us

Re: misplaced dd statement error

PostPosted: Thu Apr 25, 2019 1:49 pm
by chaitanyach31
04.06.24 JOB06809 $HASP165 KC03DB2D ENDED AT ZOSKCTR - JCL ERROR CN(INTERNAL)
***
. MESSAGE
2 IEFC019I MISPLACED DD STATEMENT
2 IEFC607I JOB HAS NO STEPS
these were the error messages

Re: misplaced dd statement error

PostPosted: Thu Apr 25, 2019 1:59 pm
by NicC
How about showing us the JCL forthe job that failed (KC03DB2D) instead of the JCL you originally showed us (JOB01)?

Re: misplaced dd statement error

PostPosted: Thu Apr 25, 2019 2:15 pm
by chaitanyach31
i have posted the jcl code in the actual post.but i am posting here again.
//JOB01 JOB 1,CHAITU,MSGCLASS=A,CLASS=A,NOTIFY=&SYSUID  
//STEP1 EXEC PGM=IEHLIST                                
//SYSPRINT DD SYSOUT=A                                  
//DD2 DD UNIT=3390,VOLUME=SER=KCTR53,DISP=SHR          
//SYSIN DD *                                            
    LISTVTOC VOL=3390=KCTR53,INDEXDSN=SYS1.VTOCIX.TOTTSB
/*

Re: misplaced dd statement error

PostPosted: Thu Apr 25, 2019 2:26 pm
by NicC
In that case you need to show the output from the job you posted - not the output from a different job.
Please use the code tags when posting code, data, cotrol statement, output etc. Use the "Full Editor" button to enter your reply if you do not know how to code the tags manually.

Re: misplaced dd statement error

PostPosted: Sat Apr 27, 2019 1:40 am
by Terry Heinze
I ran the following and it ran fine. Notice I left off one parameter:
****** ***************************** Top of Data ******************************
000001 //JOB01 JOB 1,HEINZE,MSGCLASS=A,CLASS=A,NOTIFY=&SYSUID
000002 //STEP1 EXEC PGM=IEHLIST
000003 //*YSPRINT DD SYSOUT=A
000004 //SYSPRINT DD SYSOUT=H
000005 //DD2 DD UNIT=3390,VOLUME=SER=M1TS47,DISP=SHR
000006 //SYSIN DD *
000007     LISTVTOC VOL=3390=M1TS47
000008 /*
000009 //* LISTVTOC VOL=3390=M1TS47,INDEXDSN=SYS1.VTOCIX.TOTTSB
000010 //
****** **************************** Bottom of Data ****************************

Re: misplaced dd statement error

PostPosted: Sat Apr 27, 2019 1:56 am
by NicC
Irrelevant. The job output shown was for job KC03DB2D. The JCL shown was for job JOB01. And OP has not come back so has either fixed his problem or has become bored. Either way he should come back with something to make the topic worth keeping.

Re: misplaced dd statement error

PostPosted: Sat Apr 27, 2019 2:30 am
by Terry Heinze
Agree. I'm going home now. :)