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

override symbolic of a proc within a proc


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Mon Sep 18, 2006 1:27 pm
Reply with quote

Hi ,

I have a JCL which calls a proc. The last step in that proc calls another proc in which i have a symbolic. Now i want to override that symbolic in my JCL.
//jobcard
...
//step1 exec proc1
//

proc1:
//step11 ...
//step12....
//step13 exec proc13

proc13:
//proc13 exec abc
//dd1 dd dsn=&parm,disp=shr

SO i wanna have a override for "parm" in my jcl.
can you let me know how this can be done?

Thanks & Regards,
kousalya
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Mon Sep 18, 2006 2:19 pm
Reply with quote

hi
proc1:
//step11 ...
//step12....
//step13 exec proc13

This is the procedure which calls proc13.

after the step13
give the statement

'proc13.dd1 dd dsn=;ur dsn name''


example :
//PROC1 PROC
//CREAT EXEC PGM=IEFBR14
//DD1 DD DSN=dsname1.FIRSTP,
// DISP=(NEW,CATLG,DELETE),
// LRECL=80,BLKSIZE=800,RECFM=FB,SPACE=(TRK,(10,20),RLSE)
//MYSTEP EXEC PROC=PROCS
//CREAT.DD1 DD DSN=dsname2.T.SAMS10
// PEND
//*********************************************************************
//PROF SET DSNAME='dsname3.T.SAMS11'
//PROCS PROC
//CREAT EXEC PGM=IEFBR14
//DD1 DD DSN=&DSNAME,
// DISP=(NEW,CATLG,DELETE),
// LRECL=80,BLKSIZE=800,RECFM=FB,SPACE=(TRK,(10,20),RLSE)
// PEND

//MYSTEP1 EXEC PROC=PROC1



in my example procs will workas proc13 in ur program..
Back to top
View user's profile Send private message
kousalya26

New User


Joined: 06 Jul 2005
Posts: 21
Location: chennai

PostPosted: Mon Sep 18, 2006 3:56 pm
Reply with quote

Hi Sampath,

Thanks for the reply!
but I want to override the symbolic from the JCL which calls the proc1.
Can you please let me know how it can be done?
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Mon Sep 18, 2006 4:29 pm
Reply with quote

Hi kowsalya,
in my example ,
dsname1.FIRSTP, will be created by the proc proc1
and
dsname2.T.SAMS10 will be created by procs.
here
am passing 'dsname3.T.SAMS11' as symbolic parameter.

'dsname3.T.SAMS11' will be override by 'dsname2.T.SAMS10'.
I think this is ur requirement..

if am worng,can u let me know what would be overide by which dataset(explain with my example)
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Mon Sep 18, 2006 4:38 pm
Reply with quote

kousalya26 wrote:
Hi Sampath,

Thanks for the reply!
but I want to override the symbolic from the JCL which calls the proc1.
Can you please let me know how it can be done?


An override has to be provided by the caller. Since the job is not calling PROC13, it can't provide an override. Only PROC1 can provide the override to PROC13.

This is well-documented in the JCL Reference Manual, as well as throughout these forums.
Back to top
View user's profile Send private message
mkssampathkumar
Warnings : 1

New User


Joined: 31 Aug 2006
Posts: 57
Location: chennai

PostPosted: Mon Sep 18, 2006 5:08 pm
Reply with quote

hi Kowsalya,.
Am describing in my example what kevin told..

he said proc1 can overide the proc13.
in my example PROC1 overriding the procs(proc13)
just copy my example and try to execute..
it will work and also u will get the idea.
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 pass data as symbolic parameter from ... CLIST & REXX 2
No new posts passing symbolic parameters through d... JCL & VSAM 3
No new posts Proc print in Mainframe All Other Mainframe Topics 4
No new posts AN OVERRIDE MAY NOT TARGET OVERRIDING... JCL & VSAM 1
No new posts trying to set return code in PROC JCL & VSAM 15
Search our Forums:

Back to Top