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

Equivalent Rexx code for PARMS for the EXEC PGM


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

New User


Joined: 25 Sep 2006
Posts: 24

PostPosted: Wed Oct 18, 2006 7:11 pm
Reply with quote

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
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Oct 18, 2006 7:53 pm
Reply with quote

Did you try

"CALL *(CSUTLR) 'VSSCOPY,0EQ,0100'"
Back to top
View user's profile Send private message
srajendran

New User


Joined: 25 Sep 2006
Posts: 24

PostPosted: Wed Oct 18, 2006 8:19 pm
Reply with quote

Yes I did....Then too the code failed.....
Back to top
View user's profile Send private message
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Wed Oct 18, 2006 8:43 pm
Reply with quote

Hmm...

I wonder if the program expects to see the parentheses:

"CALL *(CSUTLR) '(VSSCOPY,0EQ,0100)'"
Back to top
View user's profile Send private message
srajendran

New User


Joined: 25 Sep 2006
Posts: 24

PostPosted: Wed Oct 18, 2006 8:51 pm
Reply with quote

that too din work.... the output was INVALID PARAMETER icon_sad.gif
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 19, 2006 1:11 am
Reply with quote

In REXX, I prefer using ADDRESS ISPEXEC "SELECT PGM(program) PARM(parameters)"

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Oct 19, 2006 8:34 pm
Reply with quote

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
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
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
Search our Forums:

Back to Top