Le  party continu...my colleague suggests this question:

In a C program there is a main entry point.  This can be MAIN or it can be a 
function defined as ENTRY.  I see references in the Binder documentation about 
Alternate Entry Points.  Can you define multiple Alternate Entry Points in a C 
Load Module?"

Example
#include <stdio.h>

extern void XYZOOGA()
{
   printf("In XYZOOGA\n");
}

extern void XYZJANET()
{
  printf("In XYZJANET\n");
}

int main(int args, char **argv)
{
  printf("in main?\n");
}

I would like to dynamically call XYZJANET and XYZOOGA from a Cobol program.  
While both symbols appear in the link map I have not found the combination to 
get them both to appear in the 'Entry Point and Alias Summary' after a link. 
It's important to assume that the symbols might be long and mixed-case as well.

ENTRY POINT AND ALIAS SUMMARY:

 NAME:            ENTRY TYPE AMODE C_OFFSET CLASS NAME        STATUS

 XYZJANET          MAIN_EP      31 00000098 C_CODE

or

ENTRY POINT AND ALIAS SUMMARY:

 NAME:            ENTRY TYPE AMODE C_OFFSET CLASS NAME        STATUS

 XYZOOGA           MAIN_EP      31 00000110 C_CODE

But not

ENTRY POINT AND ALIAS SUMMARY:

 NAME:            ENTRY TYPE AMODE C_OFFSET CLASS NAME        STATUS

 XYZJANET          MAIN_EP      31 00000098 C_CODE
 XYZOOGA           ADDED        31 00000110 C_CODE

Ideas? Steve (Comstock), I'm not ignoring you - I suspect you're right, but 
want to see this through to the bitter end before giving up!
--
...phsiii

----------------------------------------------------------------------
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