You might want to check out using the DLL Cobol compiles for packaging
functions that can be referred to by name, in a single source routine.

This doesn't utilize the FUNCTION verb, but the DLL EXPORT and DLL
IMPORT options. The load library must be a PDSE for this to function,
not a PDS.

Basically you code each function as a callable entry point in the
subroutine (With 32 character names capability) then you reference them
in the calling program directly.

This is an excellent way to package many tiny functions into a single
subprogram for maintaining them, eliminating the need for each one
having to be their own program.



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Carl Edwards
Sent: Saturday, July 21, 2007 5:25 PM
To: [email protected]
Subject: COBOL Functions

We have a need to write one or more FUNCTIONS in
COBOL, to date we have been unable to find any
reference to doing such. Does anyone know if this can
be one? Has anyone done it? Several members of the
staff say it can be doen, but are unable to show any
documentation on it.
TIA


 
________________________________________________________________________
____________
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to