Yup, they moved the binder! It's not a DFSMS manual any more. It is --
wonder of all wonders -- an MVS manual! 

z/OS 
 
  MVS Program Management: User's Guide and Reference 
 
 
  Document Number SA22-7643-04

5.1.1 Entry points       Each time the binder reprocesses a program module,
the entry point for the output module should be specified in one of three
ways:  
Through an ENTRY control statement  
Through an EP option when using the binder loader function  
Through an assembler- or compiler-produced END statement of an input object
module if one is present. If multiple such entry point nominations are
encountered, the first is used. The entry point specified on the END
statement of one object module can be defined in a different object module
if it is specified as an external reference in the first module.    
The entry point assigned must be defined as an external name within the
resulting program object or load module. The ENTRY control statement takes
precedence over the EP option, which in turn takes precedence over the END
statement.

What will happen if you don't do any of those things? I would think an
experiment is in order. My wild guess would be "the first byte of the first
CSECT."

I think compilers generally generate the END statement entry point name if
the source code has a "main" or similar attribute. For the assembler, of
course, it's your gun, your bullet, your foot.

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf
Of Mark Hammond
Sent: Friday, September 29, 2006 10:12 AM
To: [email protected]
Subject: Linkage Editor

I have a link edit question and I'm trying to RTFM, but can't seem to
find the right manual.  
My query: on the linkage editor, if I have a number of 'INCLUDE
OBJECT(program)' entries and no ENTRY statement, what is the entry point
of my load module?  Is it determined by the first INCLUDE?  Or, is it
somehow related to the 'NAME loadmodulename(R)' statement?

If you can point me to the right manual so I can read more about it (a
quick answer would also be appreciated) I would be forever thankful.

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