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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Feb 23, 2010 6:06 pm
Reply with quote

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

Superior Member


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

PostPosted: Tue Feb 23, 2010 7:05 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top