IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Dummy out a PDs through Override


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Tue Nov 26, 2013 11:18 pm
Reply with quote

Hi,

I have 3 Libraries (PDS) concatenated in steplib in a PROC. I need to dummy out the 3rd library from the JCL through override. When i tried with DD DUMMY, i got a JCL error.

My PROC looks like

Code:
//STEP010 EXEC PGM=PGM1
//STEPLIB DD DSN=HLQ.PDS1,DISP=SHR
//             DD DSN=HLQ.PDS2,DISP=SHR
//             DD DSN=HLQ.PDS3,DISP=SHR


As a temporary fix, i have repeated the 2nd library twice, since DUMMY for the 3rd library fails for JCL error.
Can anyone please help me with a better solution

Thanks
sikkandhar
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Nov 27, 2013 12:14 am
Reply with quote

Add DSORG=PO to the DD DUMMY statement.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Wed Nov 27, 2013 3:06 am
Reply with quote

Hi,

please show output as I do not think you are correctly overriding the JCL.



This works fine for me.
Code:
//STEPLIB DD               
//        DD               
//        DD DUMMY         



Gerry
Back to top
View user's profile Send private message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Wed Nov 27, 2013 8:07 pm
Reply with quote

i tried with DD DUMMY, DCB=(DSORG=PO)

it threw a JCL error "INVALID USE OF DD DUMMY OR DSN=NULLFILE"

I get the same error when i just use DD DUMMY

Code:

//STEP070.STEPLIB HLQ.PDS1,DISP=SHR
//             DD DSN=HLQ.PDS2,DISP=SHR
//             DD DUMMY,DCB=(DSORG=PO)





If i submit the job, i get S013 error

TESTPDSS STEP070 STEP2 - COMPLETION CODE - SYSTEM=013 USER=0000 REASON=00000064
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed Nov 27, 2013 8:15 pm
Reply with quote

Code:
//STEP070.STEPLIB HLQ.PDS1,DISP=SHR


Is this correct?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Nov 27, 2013 8:43 pm
Reply with quote

Click HERE

Just telling us it failed JCL error is a complete waste of everybodys time. Why did you not show the output that will tell us why it failed.

In a concatenation to dummy the last entry it should be along the lines of
Code:

//DDNAME DD
//       DD
//       DD DUMMY
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Nov 27, 2013 8:49 pm
Reply with quote

OK, looking at what you have:
A steplib with a dummied out dataset (3rd of three)
An s013 abend
You have a job that executes PGM1 in STEP010
Your later posts show step STEP070
Your error message comes from STEP2

A steplib holds load modules. Load modules not found generally give S806.
A DUMMY dummies out all subsequent concatenations on that DDNAME so if there were 4 datasets concatenated doing a DD DUMMY on the 3rd and nothing else will dummy out datasets 3 AND 4

So...questions:
What is your JCL?
Are there only 3 datasets in the steplib concatenation?
Which DDName is giving the S013?
What happens when you copy the job, remove the 3rd dataset in the concatenation and run it?
Back to top
View user's profile Send private message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 61
Location: Bangalore

PostPosted: Wed Nov 27, 2013 9:43 pm
Reply with quote

apologize for the confusion in step name as i had masked the actual data.
Same applies for missing out the DD.

PROC PROCC1 has step070
Code:

//STEP070 EXEC PGM=PGM1
//STEPLIB DD DSN=HLQ.PDS1,DISP=SHR
//             DD DSN=HLQ.PDS2,DISP=SHR
//             DD DSN=HLQ.PDS3,DISP=SHR


This is how the JCL looks like
Code:

//STEP2 EXEC PROCC1
//STEP070.STEPLIB DD DSN=HLQ.PDS1,DISP=SHR
//                           DD DSN=HLQ.PDS2,DISP=SHR
//                           DD DUMMY,DCB=(DSORG=PO)


I'll post more information about the error once i get back to work tomorrow
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Dec 04, 2013 12:07 am
Reply with quote

I don't know about the DD DUMMY,DCB=(DSORG=PO) solution, but something like this will work.
Code:
//MAKEDMY EXEC PGM=IEFBR14
//DUMMY    DD  DISP=(NEW,PASS),UNIT=SYSDA,SPACE=(TRK,(1,1,1)),
//             DSN=&&DUMMY
//TEST    EXEC THEPROC
//STEP070.STEPLIB DD
//         DD
//         DD  DISP=(OLD,PASS),DSN=&&DUMMY
Another solution that should work is.
Code:
//TEST    EXEC THEPROC
//STEP070.STEPLIB DD
//         DD
//         DD  DISP=SHR,VOL=REF=*.STEPLIB,DSN=*.STEPLIB
It looks sort of strange; all it is doing is equating the third data set in the concatenation to the first data set.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts IEHPROGM ENQUEUE OVERRIDE JCL & VSAM 4
No new posts DUMMY When do I need add a DCB parameter JCL & VSAM 3
Search our Forums:

Back to Top