Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To Dummy out a PDs through Override

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Sikkandhar

New User


Joined: 03 Dec 2007
Posts: 58
Location: Bangalore

PostPosted: Tue Nov 26, 2013 11:18 pm    Post subject: To Dummy out a PDs through Override
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: 1738
Location: Bloomington, IL

PostPosted: Wed Nov 27, 2013 12:14 am    Post subject:
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: 1703
Location: Australia

PostPosted: Wed Nov 27, 2013 3:06 am    Post subject:
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: 58
Location: Bangalore

PostPosted: Wed Nov 27, 2013 8:07 pm    Post subject:
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

Moderator


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

PostPosted: Wed Nov 27, 2013 8:15 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Nov 27, 2013 8:43 pm    Post subject:
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: 1715
Location: UK

PostPosted: Wed Nov 27, 2013 8:49 pm    Post subject:
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: 58
Location: Bangalore

PostPosted: Wed Nov 27, 2013 9:43 pm    Post subject:
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 User


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

PostPosted: Wed Dec 04, 2013 12:07 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Compiler option for override the exte... muralikrishnan_new COBOL Programming 9 Fri Jul 08, 2016 12:09 pm
No new posts Symbolic OverRide within a 'Include' ... Sysaron JCL & VSAM 7 Thu Aug 27, 2015 10:51 pm
No new posts Help in File Tailoring services ( Ove... thesumitk TSO/ISPF 8 Wed Jun 17, 2015 12:04 pm
No new posts Override Condition code richards12388 JCL & VSAM 3 Sat May 16, 2015 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us