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
 
Can I return a STEM from a function?

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

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Mar 28, 2012 7:48 am    Post subject: Can I return a STEM from a function?
Reply with quote

I want to return a stem from a external function to the caller program.

function:
Code:
/* REXX ***************************************************************/
ARG Args         
return STEM LINE.     


caller main program:
Code:
/* REXX ***************************************************************/

 STEM SQLSTR. = DRAW(ARGS.1)   
 DO i = 1 to SQLSTR.0         
 SAY SQLSTR.i                 



but I failed...
can u please provide me some suggestions on the above requirement? or , if there is some alternative to a STEM value?


Appreciate your help!!!!!
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1059
Location: Oostende, Belgium

PostPosted: Wed Mar 28, 2012 11:42 am    Post subject:
Reply with quote

  • EXECIO to an external (temporary) dataset,
  • VPUT/VGET,
  • queue/pull
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 998
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Mar 28, 2012 12:29 pm    Post subject:
Reply with quote

Also, consider using the freely available STEMPULL/STEMPUSH assembler routines.

Garry.
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 Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 18 Wed Jul 19, 2017 2:50 am
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Can I traverse a STEM variable? chong.zhou CLIST & REXX 5 Wed May 31, 2017 3:54 pm
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am

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