IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Why cant we use the same name for the source and Load Pgm


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajasekhar_425

New User


Joined: 03 Jul 2006
Posts: 10
Location: Chennai

PostPosted: Thu Jan 11, 2007 12:32 pm
Reply with quote

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
View user's profile Send private message
vishalpatel

New User


Joined: 13 Dec 2006
Posts: 4
Location: Baroda

PostPosted: Thu Jan 11, 2007 1:23 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 11, 2007 2:38 pm
Reply with quote

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
View user's profile Send private message
rajasekhar_425

New User


Joined: 03 Jul 2006
Posts: 10
Location: Chennai

PostPosted: Thu Jan 11, 2007 3:17 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Jan 11, 2007 6:43 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Jan 11, 2007 7:01 pm
Reply with quote

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 icon_cry.gif but,
Rhett Butler wrote:
Frankly my dear, I don't give a damn.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts Discrepancy between source code and o... COBOL Programming 7
No new posts DB2 Load - Sort Or order BY DB2 1
Search our Forums:

Back to Top