Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to pass parm value to CLIST from JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to pass parm value to CLIST from JCL
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 21, 2010 1:32 pm    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Tue Sep 21, 2010 4:24 pm    Post subject: Reply to: How to pass parm value to CLIST from JCL
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Trace in CLIST PANEL cvnlynn CLIST & REXX 1 Thu Jun 22, 2017 11:06 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us