View previous topic :: View next topic
|
Author |
Message |
Anurag Singh
New User
Joined: 20 Jan 2008 Posts: 25 Location: India
|
|
|
|
PDS member which have the cobol code to compiled is :
ABC.JAN2010(XXX)
And in Code's Identification Division the Program ID is : YYY
Now the code is compiled , what will be the load library member for this program, whether it would be XXX or YYY and why ? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the load module name will be the name assigned by the parameter specified in the linkage editor step |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
what will be the load library member for this program, whether it would be XXX or YYY and why ? |
The answer is ... it depends. If your linkage editor (binder) includes input statements like
Code: |
ENTRY YYY
NAME ZZZ(R) |
then the load module name could be ZZZ. If your linkage editor (binder) SYSLMOD includes a member name, that will be the name in load library. The source PDS (or whatever) name is irrelevant -- so XXX will not be the name unless you code the linkage editor (binder) to call it that. Absent all other changes, YYY will be the name -- but only if you're not overriding it along the way. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
not to mention that the source may be for a called routine that is not the main entry point so the source would have nothing to do with the final name.
So the answer to your question is... there is no answer given the information you supplied |
|
Back to top |
|
|
|