Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

OVERLAY
Hi,

Could anyone please provide me some details on how to use OVERLAY in
mainframe COBOL programming....

I am looking for details about the syntax and related commands

Thanks in advance.

Thank you,
Harsha


Report this thread to moderator Post Follow-up to this message
Old Post
harsha
03-13-07 02:55 AM


Re: OVERLAY
harsha wrote:
> Hi,
>
> Could anyone please provide me some details on how to use OVERLAY in
> mainframe COBOL programming....
>
> I am looking for details about the syntax and related commands
>
> Thanks in advance.
>
> Thank you,
> Harsha

I assume you are asking about the process of using overlay structures in
creating a load module.

First, if you don't know how, that is probably GOOD!  WHY on earth [or
anywhere else after 1970] would you want to do this?  It is a poor
performer, it is fraught with risk if not done exactly right and, with
2GB of virtual storage, do you really need more space for CODE?

If you really INSIST on doing this, OVERLAY is implemented by the
linker/binder not by the application.

Now, if you are talking about the overlay feature of the Standard
COBOL 85 segmentation module, that function is not supported by the
Enterprise COBOL compiler.  So, the answer is, "You don't!"  Again,
though, why would you even want to?

Carl

Report this thread to moderator Post Follow-up to this message
Old Post
CG
03-13-07 02:55 AM


Re: OVERLAY
Carl has answered assuming you are talking about the "OVERLAY" feature of CO
BOL
where you "swap in and swap out" various SECTIONs of your code.  Although
current IBM COBOL products accept the ANSI Standard syntax for doing this, t
hey
don't actually *DO* any storage manipulation for it.  (They also don't do
certain "refreshing" semantics expected by the syntax that they allow - but
ignore.)

If you are asking because you have existing OS/VS COBOL (or earlier) source 
code
that RELIES on the *behavior* of SEGMENTATION and you are trying to upgrade 
to a
newer version, then you should read:

http://publibz.boulder.ibm.com/cgi-.../igy3mg32/4.1.7

and look for:
Segmentation changes--PERFORM statement in independent segments

If, you actually need to MAINTAIN an OS/VS COBOL program that uses "overlay"
(and runs below the 16M line), then you should get a hold of the OS/VS COBOL
Programming Guide (that was never issued in "online" format) and see what it
says about this.  There was a fairly detailed description in it.  I could ge
t
page and section number references for you - assuming you actually have a
hardcopy of the manual.

****

On the other hand, if you are using "OVERLAY" in the sense of two data
descriptions referring to the same storage, then you should look at  the COB
OL
"REDEFINES" (and possibly RENAMES) features.  If you are an "experienced"
programmer and you really are talking about the other meaning, sorry to "ins
ult"
you by asking about this.  However, your use of "overlay" wasn't entirely cl
ear
to me in your original question.

--
Bill Klein
wmklein <at> ix.netcom.com
"harsha" <harshaa@gmail.com> wrote in message
news:1173717565.918450.193950@8g2000cwh.googlegroups.com...
> Hi,
>
> Could anyone please provide me some details on how to use OVERLAY in
> mainframe COBOL programming....
>
> I am looking for details about the syntax and related commands
>
> Thanks in advance.
>
> Thank you,
> Harsha
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
03-13-07 02:55 AM


Re: OVERLAY
On Mar 12, 1:14 pm, CG <Carl.Gehr.ButNoSPAMSt...@MCGCG.Com> wrote:
> harsha wrote: 
> 
> 
> 
> 
>
> I assume you are asking about the process of using overlay structures in
> creating a load module.
>
> First, if you don't know how, that is probably GOOD!  WHY on earth [or
> anywhere else after 1970] would you want to do this?  It is a poor
> performer, it is fraught with risk if not done exactly right and, with
> 2GB of virtual storage, do you really need more space for CODE?
>
> If you really INSIST on doing this, OVERLAY is implemented by the
> linker/binder not by the application.
>
> Now, if you are talking about the overlay feature of the Standard
> COBOL 85 segmentation module, that function is not supported by the
> Enterprise COBOL compiler.  So, the answer is, "You don't!"  Again,
> though, why would you even want to?
>
> Carl

Thanks a lot for the informative response.

Actually I need to to MAINTAIN a cobol program which uses OVERLAY...

As Bill had adviced, I will try to get the hardcopy of the book !

Thank you,
Harsha


Report this thread to moderator Post Follow-up to this message
Old Post
harsha
03-13-07 11:55 PM


Re: OVERLAY
On 13 Mar 2007 08:33:16 -0700, "harsha" <harshaa@gmail.com> wrote:

>
>Actually I need to to MAINTAIN a cobol program which uses OVERLAY...

What compiler are you using?

Report this thread to moderator Post Follow-up to this message
Old Post
Howard Brazee
03-13-07 11:55 PM


Re: OVERLAY
Howard Brazee wrote:
> On 13 Mar 2007 08:33:16 -0700, "harsha" <harshaa@gmail.com> wrote:
> 
>
> What compiler are you using?
And, which interpretation of the term 'OVERLAY' are you intending?

Report this thread to moderator Post Follow-up to this message
Old Post
CG
03-13-07 11:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:06 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.