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

Passing stem variable as an argument


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

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Tue Aug 18, 2009 12:27 pm
Reply with quote

Hi all,

Is it possible to pass a stem variable as an argument to the called program?

Say I have a code like this.

Code:
/*REXX*/
DO I = 1 TO 10
  IN.I = I
END


I need to pass this stem IN. to another program called from here.

Is this possible?

Regards,
Ursvmg
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Aug 18, 2009 12:31 pm
Reply with quote

What have you tried on this?
Back to top
View user's profile Send private message
ursvmg

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Tue Aug 18, 2009 12:37 pm
Reply with quote

I tried passing like this.

Code:
/*REXX*/
DO I = 1 TO 10
  IN.I = I
END
CALL TEMP_PGM IN.


TEMP_PGM:
Code:
/*REXX*/
ARG IN1.
DO J = 1 TO 10
  SAY IN1.J
END


I'm getting only blanks in the output.

Regards,
Ursvmg
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Tue Aug 18, 2009 12:42 pm
Reply with quote

It is not possible with standard REXX. If you need to do something like this, you'll have to resort to QUEUEing, PUSHing or EXECIO.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts Passing SYSPRINT to Invoked Program PL/I & Assembler 9
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top