View previous topic :: View next topic
|
Author |
Message |
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
This has worked for me:
Code: |
Params = "SRCHCMP,ANYC,FMSTOP,IDPFX"
Address LINKMVS "ISRSUPC Params" |
|
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
Back to top |
|
|
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
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 |
|
|
|