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

How to use PARM when calling ISRSUPC with LINKMVS


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

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon Jun 09, 2014 3:02 pm
Reply with quote

Hi all

I'm writing a REXX PGM which call ISRSUPC , and I use the parm : SRCHCMP,ANYC,FMSTOP,IDPFX

I could run it with
Code:
ADDRESS ISPEXEC "SELECT PGM(ISRSUPC) PARM('SRCHCMP,ANYC,FMSTOP,IDPFX')"


but when I use LINKMVS , the parm could not be use after SRCHCMP
(it seems that only one parm:SRCHCMP was used )

Code:

ADDRESS LINKMVS "ISRSUPC  SRCHCMP ANYC FMSTOP IDPFX"



and I also tried
Code:

ADDRESS LINKMVS "ISRSUPC  SRCHCMP,ANYC,FMSTOP,IDPFX"

it's not work . can anyone tell me how to call with LINKMVS ? Thanks .
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Jun 09, 2014 4:12 pm
Reply with quote

This has worked for me:
Code:
Params = "SRCHCMP,ANYC,FMSTOP,IDPFX"
Address LINKMVS "ISRSUPC Params"
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Jun 09, 2014 4:21 pm
Reply with quote

Here is a pointer to the documentation:The LINKMVS and ATTCHMVS host command environments
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Wed Jun 11, 2014 1:10 pm
Reply with quote

Marso wrote:
Here is a pointer to the documentation:The LINKMVS and ATTCHMVS host command environments


Thanks Marso , it worked , and the point is "specify variable names instead of the actual values." right ?

and
Code:
PARMS = 'SRCHCMP ANYC FMSTOP IDPFX'
ADDRESS LINKMVS "ISRSUPC PARMS"   

also worked . but if I use
Code:
PARM1 = 'SRCHCMP'
PARM2 = 'ANYC'
PARM3 = 'FMSTOP'
PARM4 = 'IDPFX'
ADDRESS LINKMVS "ISRSUPC PARM1 PARM2 PARM3 PARM4"

it only receive the PARM1 , I think only one parm could be received by ISRSUPC , so I should give it one parm with a list . right ?
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Jun 11, 2014 1:58 pm
Reply with quote

chaoj wrote:
the point is "specify variable names instead of the actual values." right ?
indeed

chaoj wrote:
I think only one parm could be received by ISRSUPC , so I should give it one parm with a list . right ?
I guess it's similar to passing parameters in cobol programs:
If you code
Code:
CALL 'PROG' USING PARM1 PARM2 PARM3
but PROG has
Code:
PROCEDURE DIVISION USING PARM1.
then PARM2 and PARM3 are going into limbo.
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Wed Jun 11, 2014 2:07 pm
Reply with quote

Marso wrote:
chaoj wrote:
the point is "specify variable names instead of the actual values." right ?
indeed

chaoj wrote:
I think only one parm could be received by ISRSUPC , so I should give it one parm with a list . right ?
I guess it's similar to passing parameters in cobol programs:
If you code
Code:
CALL 'PROG' USING PARM1 PARM2 PARM3
but PROG has
Code:
PROCEDURE DIVISION USING PARM1.
then PARM2 and PARM3 are going into limbo.


Marso , I got it ,thanks for your explanation !
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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts JCL EXEC PARM data in C Java & MQSeries 2
No new posts Need to specify PARM='POSIX(ON) Java & MQSeries 4
Search our Forums:

Back to Top