View previous topic :: View next topic
|
Author |
Message |
kousalya26
New User
Joined: 06 Jul 2005 Posts: 21 Location: chennai
|
|
|
|
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 |
|
|
mkssampathkumar Warnings : 1 New User
Joined: 31 Aug 2006 Posts: 57 Location: chennai
|
|
|
|
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 |
|
|
kousalya26
New User
Joined: 06 Jul 2005 Posts: 21 Location: chennai
|
|
|
|
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 |
|
|
mkssampathkumar Warnings : 1 New User
Joined: 31 Aug 2006 Posts: 57 Location: chennai
|
|
|
|
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 |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
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 |
|
|
mkssampathkumar Warnings : 1 New User
Joined: 31 Aug 2006 Posts: 57 Location: chennai
|
|
|
|
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 |
|
|
|