View previous topic :: View next topic
|
Author |
Message |
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
HI friends,
what is ADDRESSING MODE(AMODE) AND RESIDENCY MODE(RMODE)?
NO NEED TO DESRCIBE ABOUT 31,24,ANY...BECAUSE THOSE ARE FEATURES OR TECHNIQUES IN THESE MODE...I JUSST WANY WHAT ARE ADDRESSING AND RESIDING HERE IN MODES.....COULD ANY ONE PLEASE EXPLIAN... |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
If you'd like to start with these fine manuals, provided by Anuj for a previous time the question was asked.
If you had searched the Cobol forum or googled, you'd have got to these, and similar, without having to ask.
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
ram_vizag,
clarity comes with understanding of the terms,
which are defined/discussed in many manuals and
as this is a repeated question on this board by people too lazy to search,
there are hundreds of posts that you can go through.
since your skillset seems to be basic at best,
reading thru all the posts or referring to the manuals
would be a good exercise in order to increase your knowledge base. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Actually, if you don't understand why 31, 24, ANY -- then you cannot understand AMODE and RMODE. If you want to learn about AMODE and RMODE without knowing why 24, 31, ANY -- at best you'll learn only part of the information, and at worst you will have a completely wrong idea about AMODE and RMODE. |
|
Back to top |
|
|
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
Here is the answer for my above question:
The AMODE instruction allows you to specify the addressing mode to be
associated with control sections in the object deck.
24 Specifies that 24-bit addressing mode is to be associated with a
control section, or entry point.
31 Specifies that 31-bit addressing mode is to be associated with a
control section, or entry point.
64 Specifies that 64-bit addressing mode is to be associated with a
control section, or entry point
RMODE:
The RMODE instruction allows you to specify the residence mode to be
associated with control sections in the object deck.
The RMODE option setting influences the the RMODE (residency mode) of you
generated object program.
A program compiled with the RMODE(24) option will have RMODE 24 whether
NORENT or RENT is specified.
A program compiled with the RMODE(ANY) option will have RMODE ANY whether
NORENT or RENT is specified. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Not really the answer I was expecting, but it was your question, so if you're happy, that is good. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Re-entrancy (RENT / NORENT) has almost nothing to do with AMODE or RMODE, other than they are all options of the linkage editor / binder. You answer sounds suspiciously parroted, and there's no indication of any real understanding of why 24-bit, 31-bit, and 64-bit addresses exist -- but as long as you're happy with the answer you got, so be it. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Robert Sample wrote: |
[..]You answer sounds suspiciously parroted |
Not so much parroted, as pasted, from the HLASM manual. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Here is the answer for my above question: |
As others have said - not really.
If someone asks you if they should use one Amode or Rmode versus another in some program, what will you tell them? They won't want to hear how it works - they will want to know which should be chosen.
Which is what we believed was your original question. . . |
|
Back to top |
|
|
ram_vizag
Active User
Joined: 21 Aug 2008 Posts: 112 Location: hyd
|
|
|
|
Hi dick scherrer,
amode(31) rmode(any) is the answer to your question... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
If someone asks you if they should use one Amode or Rmode versus another in some program, what will you tell them? |
Quote: |
amode(31) rmode(any) is the answer to your question... |
Well, as the manauls says - all OS/VS COBOL programs are AMODE 24 and RMODE 24. Enterprise COBOL programs are always AMODE ANY and can be either RMODE 24 or RMODE ANY. The WORKING-STORAGE data items can be either above or below the 16-MB line, based on the DATA, RENT and RMODE compiler options. So 'am not sure, will Dick buy your statement or not? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
amode(31) rmode(any) is the answer to your question... |
and the answer might be wrong!
unless You know exactly what Your program is doing and the resources it is using
You cannot tell the AMODE and RMODE to be used ! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
amode(31) rmode(any) is the answer to your question... |
Why do you believe this?
Suggest you re-read and consider what Anuj and Enrico have posted. . . |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
amode(31) rmode(any) is the answer to your question... |
And the interface program is 20 years old, compiled as AMODE(24) RMODE(24), the source is gone and hence the program cannot be recompiled -- you STILL going to tell us AMODE(31) RMODE(ANY) is the answer? |
|
Back to top |
|
|
|