View previous topic :: View next topic
|
Author |
Message |
ursvmg
New User
Joined: 24 May 2007 Posts: 52 Location: Chennai
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
What have you tried on this? |
|
Back to top |
|
|
ursvmg
New User
Joined: 24 May 2007 Posts: 52 Location: Chennai
|
|
|
|
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
|