IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

implement more than one returns when PLI function invoked


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 1306
Location: Vilnius, Lithuania

PostPosted: Sun May 16, 2010 3:26 am
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
Search our Forums:

Back to Top