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

How to pass parm value to CLIST from JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
wilsonajames

New User


Joined: 26 Mar 2009
Posts: 3
Location: chennai

PostPosted: Tue Sep 21, 2010 1:12 pm
Reply with quote

Dears,

Can anyone tell me how to pass the parm value to CLIST pgm thru JCL?

Thanks
Wilson James
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 21, 2010 1:32 pm
Reply with quote

Exactly the same way that you would do it when passing values from the EXEC statement, only you code the parm values in the PARM statement of the EXEC card.

Show us what you have coded and the errors encountered.
Back to top
View user's profile Send private message
wilsonajames

New User


Joined: 26 Mar 2009
Posts: 3
Location: chennai

PostPosted: Tue Sep 21, 2010 4:07 pm
Reply with quote

Hi,

Thanks for the reply.

Am passing the value like below,but not sure how to receive this value in CLIST PROC

//FTP1 EXEC PGM=KEQEFT01,REGION=1000M,DYNAMNBR=50,PARM='XXXX'
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Sep 21, 2010 4:24 pm
Reply with quote

A typical job would be setup like:

Code:

//FTP1     EXEC PGM=IKJEFT01,DYNAMNBR=50,PARM='CLIST# 1 2'
//SYSPROC  DD   DSN=MY.SYSPROC,DISP=SHR
//SYSTSPRT DD   SYSOUT=*
//SYSTSIN  DD   DUMMY
//*


where the CLIST CLIST# contains an appropriate PROC statement:

Code:

PROC 2 VAR1 VAR2
WRITE &VAR1 &VAR2
...
END


As described in the z/OS V1R11.0 TSO/E CLISTs manual.
Back to top
View user's profile Send private message
wilsonajames

New User


Joined: 26 Mar 2009
Posts: 3
Location: chennai

PostPosted: Tue Sep 21, 2010 4:54 pm
Reply with quote

Thanks Much Mr.kevin.. icon_smile.gif its working fine now
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top