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
 

 

Equivalent Rexx code for PARMS for the EXEC PGM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
srajendran

New User


Joined: 25 Sep 2006
Posts: 22

PostPosted: Wed Oct 18, 2006 7:11 pm    Post subject: Equivalent Rexx code for PARMS for the EXEC PGM
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    Post subject: Re: PARMS for the EXEC PGM....
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: 22

PostPosted: Wed Oct 18, 2006 8:19 pm    Post subject:
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    Post subject: Re: Equivalent Rexx code for PARMS for the EXEC PGM
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: 22

PostPosted: Wed Oct 18, 2006 8:51 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Thu Oct 19, 2006 1:11 am    Post subject:
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: 1224
Location: Israel

PostPosted: Thu Oct 19, 2006 8:34 pm    Post subject:
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    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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 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 REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am


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