Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
override symbolic of a proc within a proc

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: override symbolic of a proc within a proc
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    Post subject:
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    Post subject: Re: override symbolic of a proc within a proc
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    Post subject:
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    Post subject: Re: override symbolic of a proc within a proc
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    Post subject:
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    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. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts REXX to view the PGM or PROC jackzhang75 CLIST & REXX 11 Tue Jun 20, 2017 1:20 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us