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

Continuation of PARM value in REXX batch execution


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

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Fri Aug 21, 2009 9:23 pm
Reply with quote

Hi,

I have the below lines in my JCL.

Code:

//S030     EXEC PGM=IKJEFT01,COND=(0,LT),                           
//          PARM='%#MEMBER &HLQ..&JCLN..D&GGG..T&SSS..AAA &FILEID'


Now I want to add one more PARM value next to &FILEID. I searched in the manuals. Unfortunately my search is not good enough to get me the results. Can anyone please guide me how can i continue the PARM value in the next line.

I know if the new value is small, then i can pass it via SYSTSIN. But I would like to know how to achieve for the above case.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 21, 2009 10:24 pm
Reply with quote

Click on the manuals link at the top of the page, click on the JCL Reference manual, go to chapter 16.8.1 and you find the syntax is
Quote:
PARM[.procstepname]=subparameter
PARM[.procstepname]=(subparameter,subparameter)
PARM[.procstepname]=('subparameter',subparameter)
PARM[.procstepname]='subparameter,subparameter'
with a restriction of
Quote:
Length: The length of the subparameters passed must not exceed 100
characters:

° Including any commas, which are passed to the processing program.
° Excluding any enclosing parentheses or apostrophes, which are not
passed.
and further
Quote:
Continuation onto Another Statement: Enclose the subparameters in
parentheses. End each statement with a comma after a subparameter. For
example:

//STEP1 EXEC PGM=WORK,PARM=(DECK,LIST,'LINECNT=80',
// '12+80',NOMAP)


So which manual did you search in?
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Fri Aug 21, 2009 10:35 pm
Reply with quote

Hi Robert,

My search results showed the same as that of yours. searched in REXX manuals too. I am executing a Rexx via batch and when i tried with various options shown in the JCL manual, I got JCL error. Few of them are UNIDENTIFIABLE CHARACTER % ON THE EXEC STATEMENT,
UNBALANCED PARENTHESES ON THE EXEC STATEMENT

So I was confused a bit. I was searching for the continuation parameter for PARM values in REXX manuals. As i said earlier, i was not able to find any.


Sample one:
Code:

//S030     EXEC PGM=IKJEFT01,COND=(0,LT), 
//          PARM=(%#MEMBER,               
// XXXX.dddd.ffff,H1DNT1)                 


Error:
Code:
5 IEFC620I UNIDENTIFIABLE CHARACTER % ON THE EXEC STATEMENT     
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Fri Aug 21, 2009 11:38 pm
Reply with quote

Code:

//S030     EXEC PGM=IKJEFT01,COND=(0,LT), 
//          PARM=(#MEMBER,               
// 'XXXX.dddd.ffff','H1DNT1')                 


works for me ...
Back to top
View user's profile Send private message
senjay

Active User


Joined: 10 May 2007
Posts: 147
Location: India

PostPosted: Fri Aug 21, 2009 11:45 pm
Reply with quote

Thanks a lot SuperK. It worked perfectly.
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 Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top