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
 
Passing stem variable as an argument

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Passing stem variable as an argument
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    Post subject:
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    Post subject:
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: 1060
Location: Oostende, Belgium

PostPosted: Tue Aug 18, 2009 12:42 pm    Post subject:
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    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 Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm

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