View previous topic :: View next topic
|
Author |
Message |
rajasekhar_425
New User
Joined: 03 Jul 2006 Posts: 10 Location: Chennai
|
|
|
|
All,
Can i know what is the reason in going for different load name and source name i mean if source is CYCSR002 the load name is CYCSR00B.
why cant we use the same name as the source for the Load also.
Thanks in Advance,
Rajasekhar. |
|
Back to top |
|
|
vishalpatel
New User
Joined: 13 Dec 2006 Posts: 4 Location: Baroda
|
|
|
|
hello,
do u know,what is source library and load library?
as per my knowledge ,purpose of load library to store object file of source file. source file is the file in which u can write your COBOL program, which is stored in source library.
Now,program written in COBOL coding,which cant interpreted by compiler.
so first of all compiler will generate object file of same source file with same name but with the extension of object format.
if u have a same name of load library and source library, object file resides in same library.
due to that,there may be some problem to distinguish source file and object file in same library.
i hope this will guide u little more. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
rajasekhar_425 wrote: |
Can i know what is the reason in going for different load name and source name i mean if source is CYCSR002 the load name is CYCSR00B.
why cant we use the same name as the source for the Load also. |
I think you will have to ask the person who did it. You CAN use the same name, but you don't have to.
vishalpatel wrote: |
if u have a same name of load library and source library, object file resides in same library.
due to that,there may be some problem to distinguish source file and object file in same library. |
There is no (reasonable) way you can share a library with source and object. |
|
Back to top |
|
|
rajasekhar_425
New User
Joined: 03 Jul 2006 Posts: 10 Location: Chennai
|
|
|
|
All,
Thanx a lot i just want to confirm is there any specific reason behind that.
Thanx once again for your valuable replies.
Rajasekhar. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
The Load Lib stores the load module, not the object file.
The compiler output is the object file, LRECL=80, and this can be stored in an object lib. The Linkage Editor creates the load module from the object file plus other external references.
While usually one does not save the object file, so the compile/lked proc uses a temp file for that, one can save it if one wants to.
There may be cases where one saves the object file for later re-links with modified subroutines, where the main routine need not be recompiled. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Phrzby Phil wrote: |
The Load Lib stores the load module, not the object file.
The compiler output is the object file, LRECL=80, and this can be stored in an object lib. The Linkage Editor creates the load module from the object file plus other external references.
While usually one does not save the object file, so the compile/lked proc uses a temp file for that, one can save it if one wants to.
There may be cases where one saves the object file for later re-links with modified subroutines, where the main routine need not be recompiled. |
I stand suitably chastised but,
Rhett Butler wrote: |
Frankly my dear, I don't give a damn. |
|
|
Back to top |
|
|
|