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
 

 

Override a file in a proc that occurs multiple times in a jo

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

New User


Joined: 19 Apr 2005
Posts: 11

PostPosted: Tue Feb 23, 2010 6:00 pm    Post subject: Override a file in a proc that occurs multiple times in a jo
Reply with quote

Hi,
I would like to introduce an override to a file in a proc say PROC1. Its DD name is SYSUT1 in STEP10 of the PROC1.

my proc PROC1 looks like this:

PROC1 PROC
*************************************
* FIRST STEP *
***********************************
STEP10 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=FILE1,DISP=SHR
//*
//SYSUT2 DD DSN=FILE2,DISP=SHR
//*
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*


Now I have a JOBA that executes multiple procs.
my JOB looks like:
//JOBA .............
//.......
//*
//JCLLIB JCLLIB ORDER=(MY.DSN1.PROCLIB)
//STEP01 EXEC PROC1
//STEP01 EXEC PROC2
//STEP01 EXEC PROC3
//STEP01 EXEC PROC2
//STEP01 EXEC PROC3
//STEP01 EXEC PROC1

Now my Question is,
Is there any way to give a override ONLY ONCE in the job, so that the SYSUT1 IN PROC1 IS OVERRIDEN wherever my PROC1 gets executes in the JOB1? icon_rolleyes.gif

Thanks,
Ranjini icon_smile.gif
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: Tue Feb 23, 2010 6:06 pm    Post subject:
Reply with quote

No
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Feb 23, 2010 7:05 pm    Post subject:
Reply with quote

The way qustion is posted, answer is No as expat said. On ther other hand, you might take the PROC1 in some PDS, change the DSN in the concerned DD name and "include" the PROC in your JCL from the personal library.
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am


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