Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Dynamic calling in Rexx not working

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

New User


Joined: 07 Jun 2007
Posts: 15
Location: chennai

PostPosted: Wed Oct 17, 2007 12:00 pm    Post subject: Dynamic calling in Rexx not working
Reply with quote

Hi,

Could you please help me in performing a Dynamic call in Rexx.

My requirement is as follows:

i will get a value from the user for the variable format_code for instance 10.

Then i have to call a program module TDRXHC10.
The logic im having is as follows:

call_pgm = "TDRXHC" || format_code
call value(strip(call_pgm))

But the call is not working.

Please help me out.
Regards,
Elamaran S
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10375
Location: italy

PostPosted: Wed Oct 17, 2007 12:16 pm    Post subject: Reply to: Dynamic calling in Rexx not working
Reply with quote

Quote:
But the call is not working.


A little bit generic, as a starting point, isn' t it ?

If You want to behelped You need to be a little bit more specific.

is the program You a recalling REXX aware?
if not You can only have collateral effecs,
which means carry on some actions based on the input parameters,
the only thing which will passed back and usable by rexx is the return code.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1252
Location: Israel

PostPosted: Wed Oct 17, 2007 1:17 pm    Post subject:
Reply with quote

use:
Code:
call_pgm = "TDRXHC" || format_code
interpret 'call 'call_pgm
Back to top
View user's profile Send private message
jameslemo

New User


Joined: 19 Oct 2006
Posts: 1

PostPosted: Wed Oct 17, 2007 4:46 pm    Post subject: Reply to: Dynamic calling in Rexx not working
Reply with quote

Instead of using Value and strip function simultaneosly can u try doing it in two steps. Probably that would work.. or else u have to try Interpret.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1252
Location: Israel

PostPosted: Wed Oct 17, 2007 8:11 pm    Post subject: Re: Reply to: Dynamic calling in Rexx not working
Reply with quote

jameslemo wrote:
Instead of using Value and strip function simultaneosly can u try doing it in two steps. Probably that would work.. or else u have to try Interpret.

this kind of function within a function works very well in rexx.
in fact, it is often recommended to use this way.
Of course, use but do not abuse!
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us