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
 

 

Share stem with procedure

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

New User


Joined: 16 Aug 2005
Posts: 46

PostPosted: Sat Sep 17, 2011 10:45 am    Post subject: Share stem with procedure
Reply with quote

hello everybody
is it possible to share a stem. with a procedure in rexx ?

for example :

Code:
/*rexx*/

var.1='apple'
var.2='orange'
var.3='car'
var.0=3
call my_proc
exit

my_proc: procedure

do i =1 to var.0
say var.i
end



any other workaround is also welcome!
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Sep 17, 2011 11:41 am    Post subject:
Reply with quote

What happened when you tried it ?

Have you read about EXPOSE
Back to top
View user's profile Send private message
Eddie Sasser

New User


Joined: 10 Aug 2011
Posts: 2
Location: US

PostPosted: Wed Sep 28, 2011 2:31 am    Post subject:
Reply with quote

You can share a stem with the EXPOSE parm...Like so:

my_proc: procedure expose var.
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 Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts Is it possible to pass variables of s... Csongor CLIST & REXX 2 Fri Jun 10, 2016 7:33 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm


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