misplaced dd statement error



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

misplaced dd statement error

Postby chaitanyach31 » Thu Apr 25, 2019 10:10 am

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
/*                                                      
chaitanyach31
 
Posts: 3
Joined: Thu Apr 25, 2019 10:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: misplaced dd statement error

Postby expat » Thu Apr 25, 2019 11:43 am

Can you show us the output ................ it's usually far more useful than what you tell us
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: misplaced dd statement error

Postby chaitanyach31 » Thu Apr 25, 2019 1:49 pm

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
chaitanyach31
 
Posts: 3
Joined: Thu Apr 25, 2019 10:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: misplaced dd statement error

Postby NicC » Thu Apr 25, 2019 1:59 pm

How about showing us the JCL forthe job that failed (KC03DB2D) instead of the JCL you originally showed us (JOB01)?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: misplaced dd statement error

Postby chaitanyach31 » Thu Apr 25, 2019 2:15 pm

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
/*
chaitanyach31
 
Posts: 3
Joined: Thu Apr 25, 2019 10:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: misplaced dd statement error

Postby NicC » Thu Apr 25, 2019 2:26 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: misplaced dd statement error

Postby Terry Heinze » Sat Apr 27, 2019 1:40 am

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 ****************************
.... 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: misplaced dd statement error

Postby NicC » Sat Apr 27, 2019 1:56 am

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: misplaced dd statement error

Postby Terry Heinze » Sat Apr 27, 2019 2:30 am

Agree. I'm going home now. :)
.... 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


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post