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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


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