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

Can we code more than one symbolic parameter in a single job


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

New User


Joined: 03 May 2005
Posts: 10
Location: bangalore

PostPosted: Tue May 17, 2005 2:29 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Tue May 17, 2005 2:54 pm
Reply with quote

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
View user's profile Send private message
shinjini_t

New User


Joined: 11 May 2005
Posts: 14
Location: Bangalore, India

PostPosted: Tue May 17, 2005 3:26 pm
Reply with quote

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
View user's profile Send private message
ankyhunk

Moderator


Joined: 05 May 2005
Posts: 98
Location: Navi Mumbai, India

PostPosted: Tue May 17, 2005 3:32 pm
Reply with quote

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
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Wed May 18, 2005 12:33 pm
Reply with quote

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
View user's profile Send private message
karuna

New User


Joined: 03 May 2005
Posts: 10
Location: bangalore

PostPosted: Thu May 19, 2005 2:06 pm
Reply with quote

Hi Ajay,


We can define filename and disp symbolic parameters in PROC statement.
Back to top
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Thu May 19, 2005 2:10 pm
Reply with quote

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
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu May 19, 2005 5:13 pm
Reply with quote

The only part of proc that cannot be symbolic is the name of DD statement and the name of the step.
Back to top
View user's profile Send private message
karuna

New User


Joined: 03 May 2005
Posts: 10
Location: bangalore

PostPosted: Sat May 21, 2005 11:19 am
Reply with quote

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
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IBM IMU Utility for Easytrieve Code t... IBM Tools 0
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts purge jobs with return code 0 and ret... JCL & VSAM 6
No new posts combine multiple unique records into ... DFSORT/ICETOOL 2
No new posts SORT JCL to merge multiple tow into s... DFSORT/ICETOOL 6
Search our Forums:


Back to Top