View previous topic :: View next topic
|
Author |
Message |
Sikkandhar
New User
Joined: 03 Dec 2007 Posts: 61 Location: Bangalore
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Add DSORG=PO to the DD DUMMY statement. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
Sikkandhar
New User
Joined: 03 Dec 2007 Posts: 61 Location: Bangalore
|
|
|
|
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 |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Code: |
//STEP070.STEPLIB HLQ.PDS1,DISP=SHR |
Is this correct? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Sikkandhar
New User
Joined: 03 Dec 2007 Posts: 61 Location: Bangalore
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
|