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
 

 

How to use PARM when calling ISRSUPC with LINKMVS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to use PARM when calling ISRSUPC with LINKMVS
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: 1235
Location: Israel

PostPosted: Mon Jun 09, 2014 4:12 pm    Post subject: Reply to: How to use PARM when calling ISRSUPC with LINKMVS
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: 1235
Location: Israel

PostPosted: Mon Jun 09, 2014 4:21 pm    Post subject:
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    Post subject:
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: 1235
Location: Israel

PostPosted: Wed Jun 11, 2014 1:58 pm    Post subject:
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    Post subject:
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    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 Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm


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