Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Can we code more than one symbolic parameter in a single job
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    Post subject:
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    Post subject: Re: Symbolic Overrides in JCL
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    Post subject:
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    Post subject:
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    Post subject: Re: Can we code more than one symbolic parameter in a single
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    Post subject:
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    Post subject:
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    Post subject:
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    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
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us