Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Why cant we use the same name for the source and Load Pgm
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    Post subject: Re: Load & Source Name different
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: 3158
Location: Tucson AZ

PostPosted: Thu Jan 11, 2007 2:38 pm    Post subject: Re: Load & Source Name different
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    Post subject: Re: Load & Source Name different
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

Active Member


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

PostPosted: Thu Jan 11, 2007 6:43 pm    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Thu Jan 11, 2007 7:01 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us