|
|
| Author |
Message |
karuna
New User
Joined: 03 May 2005 Posts: 10 Location: bangalore
|
|
|
|
Can we code more than one symbolic parameter in a single job step?
eg. //procname proc
// step1 exec pgm=programe,parm=&abcd
//.dd1 DD DSN=&filename,disp=&shr
// pend
If yes,can we define all the values in a step?
eg. //step2 exec proc=procname,abcd=arty
//assign proc filename=newname,shr=old
//
Please let me know with syntax. |
|
| Back to top |
|
 |
References
|
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 478 Location: Milan, Italy
|
|
|
|
If I'm can understand your request, you are looking for a way to pass, in a single string all the parameter you want to pass to the proc.
You can pass parameter in proc or in jcl:
i.e. in PROC
//MYPROC PROC PAR1=,PAR2=.PAR3=,
// PAR4=,PAR5....
i.e. in JCL
//STEP010 EXEC MYPROC,PAR1=,PAR2=,PAR3=,
// PAR4=,PAR5= |
|
| Back to top |
|
 |
shinjini_t
New User
Joined: 11 May 2005 Posts: 14 Location: Bangalore, India
|
|
|
|
Hi,
I think you are asking whether in the JCL when you call the PROC , can you specify more than one symbolic parameters.
You can do that and please see this example:
Procedure
//MYPROC PROC DEPT=ENR
//STEP2 EXEC PGM=IEFBR14
//DD1 DD DSN=&DEPT..COBOL.PGM,
// SPACE=(TRK,(&SPACE)),
// DCB=(RECFM=FB,BLKSIZE=800,LRECL=80),VOL=SER=INUSR3,
// DISP=(NEW,CATLG),UNIT=SYSDA
//SYSOUT DD SYSOUT=&CLASS
// PEND
Calling JCL
//INF62441 JOB (AMLAN),NOTIFY=INF6244,CLASS=A
//STEP001 EXEC MYPROC,CLASS=M,DEPT=EURP,SPACE=?5,1?
//STEP002 EXEC MYPROC |
|
| Back to top |
|
 |
ankyhunk
Moderator
Joined: 05 May 2005 Posts: 102 Location: Navi Mumbai, India
|
|
|
|
Yes, you can code more than one symbolic parameter in a single job step.
e.g. -
Procedure SSP can be coded as
| Code: |
//S1 EXEC PGM = P1, PARM = &PEL
//A EXEC SSP, PEL=FLD |
Substitution results in
| Code: |
| //S1 EXEC PGM=P1, PARM=FLD |
|
|
| Back to top |
|
 |
ajay_dheepak
New User
Joined: 12 May 2005 Posts: 33 Location: Chennai
|
|
|
|
Karuna,
This is what u had said.
//step2 exec proc=procname,abcd=arty
//assign proc filename=newname,shr=old
...
//pend
//procname proc
// step1 exec pgm=programe,parm=&abcd
//.dd1 DD DSN=&filename,disp=&shr
// pend
//
I think u can't use the filename and disp symbolic parameters in the procname proc. Where in u can use the abcd parameter.
Ajay |
|
| Back to top |
|
 |
karuna
New User
Joined: 03 May 2005 Posts: 10 Location: bangalore
|
|
|
|
Hi Ajay,
We can define filename and disp symbolic parameters in PROC statement. |
|
| Back to top |
|
 |
ajay_dheepak
New User
Joined: 12 May 2005 Posts: 33 Location: Chennai
|
|
|
|
Y I said that was because,
The filename and disp parameters where used as symbolic parameters for PROC assign. How can this be used inside a different proc named procname? |
|
| Back to top |
|
 |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 478 Location: Milan, Italy
|
|
|
|
| The only part of proc that cannot be symbolic is the name of DD statement and the name of the step. |
|
| Back to top |
|
 |
karuna
New User
Joined: 03 May 2005 Posts: 10 Location: bangalore
|
|
|
|
| ajay_dheepak wrote: |
Y I said that was because,
The filename and disp parameters where used as symbolic parameters for PROC assign. How can this be used inside a different proc named procname? |
Ajay,
INSTREAM PROC
//procname proc
// step1 exec pgm=programe,parm=&abcd
//dd1 DD DSN=&filename,disp=&shr
// pend
//step2 exec procname,abcd=arty
//assign proc filename=newname,shr=old
//
I am calling instream proc in a single job step and trying to define all the symbolic parameters value in that step,not inside another proc.We cant call proc by another proc then i think its not possible to define symbolic parameters value in another proc by calling it.
Karuna |
|
| Back to top |
|
 |
|
|
|