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
 
implement more than one returns when PLI function invoked

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
henry888

New User


Joined: 21 Sep 2009
Posts: 51
Location: china

PostPosted: Sat May 15, 2010 11:41 pm    Post subject: implement more than one returns when PLI function invoked
Reply with quote

I need two values to be returned when invoke the function procedure in my requirement.But in reference it's mentioned that :
A programmer-defined function can return only an element value.The function returns control and a value and aggregated cannot be returned.

In function procedure the two variables type is FIXED BIN(15) and FIXED BIN(31),because the aggregated cannot be returned so is there any simple method to combine them as a single return value to main program?The returned value should be easily parsed into two varibles as defined in function procedure?

If anyone has the good idea please teach me.

Thanks in advance!
Back to top
View user's profile Send private message

prino

Senior Member


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

PostPosted: Sun May 16, 2010 3:26 am    Post subject:
Reply with quote

Just use two extra parameters, was that so hard?
Back to top
View user's profile Send private message
henry888

New User


Joined: 21 Sep 2009
Posts: 51
Location: china

PostPosted: Mon May 17, 2010 8:12 am    Post subject:
Reply with quote

prino wrote:
Just use two extra parameters, was that so hard?


yes,adding parameters will work out,thanks for you reply...
Back to top
View user's profile Send private message
donateeye
Warnings : 2

New User


Joined: 01 Jun 2007
Posts: 62
Location: chennai

PostPosted: Mon May 17, 2010 10:22 am    Post subject:
Reply with quote

Can use subroutine procedure instead.
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 -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm

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