|
View previous topic :: View next topic
|
| Author |
Message |
srajendran
New User
Joined: 25 Sep 2006 Posts: 24
|
|
|
|
Hi,
Can anyone tell me the equivalent of this part of code to be coded in REXX.
//UPDTE1 EXEC PGM=CSUTLR,
// PARM=(VSSCOPY,0EQ,0100)
I tried "CALL *(CSUTLR) VSSCOPY,0EQ,0100" , but did not work... |
|
| Back to top |
|
 |
Kevin
Active User

Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Did you try
"CALL *(CSUTLR) 'VSSCOPY,0EQ,0100'" |
|
| Back to top |
|
 |
srajendran
New User
Joined: 25 Sep 2006 Posts: 24
|
|
|
|
| Yes I did....Then too the code failed..... |
|
| Back to top |
|
 |
Kevin
Active User

Joined: 25 Aug 2005 Posts: 234
|
|
|
|
Hmm...
I wonder if the program expects to see the parentheses:
"CALL *(CSUTLR) '(VSSCOPY,0EQ,0100)'" |
|
| Back to top |
|
 |
srajendran
New User
Joined: 25 Sep 2006 Posts: 24
|
|
|
|
that too din work.... the output was INVALID PARAMETER  |
|
| Back to top |
|
 |
ofer71
Global Moderator

Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
In REXX, I prefer using ADDRESS ISPEXEC "SELECT PGM(program) PARM(parameters)"
O. |
|
| Back to top |
|
 |
Marso
REXX Moderator

Joined: 13 Mar 2006 Posts: 1356 Location: Israel
|
|
|
|
To call a COBOL program from REXX, I usualy use the same as Ofer:
ADDRESS ISPEXEC "SELECT PGM(program) PARM(parameters)"
However, if I want to execute another REXX I use:
CALL 'REXXPGM'(parm1 parm2)
or, if the called rexx returns a value:
resp = 'REXXPGM'(parm1 parm2) |
|
| Back to top |
|
 |
|
|