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

What is AMODE and RESIDENCY MODE(RMODE)


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

Active User


Joined: 21 Aug 2008
Posts: 112
Location: hyd

PostPosted: Sun Aug 21, 2011 5:11 pm
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sun Aug 21, 2011 5:45 pm
Reply with quote

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.

Anuj Dhawan wrote:
[...]

AMODE and RMODE considerations
Storage and its addressability
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Aug 21, 2011 6:02 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Sun Aug 21, 2011 6:12 pm
Reply with quote

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

Active User


Joined: 21 Aug 2008
Posts: 112
Location: hyd

PostPosted: Fri Aug 26, 2011 1:41 pm
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 26, 2011 2:27 pm
Reply with quote

Not really the answer I was expecting, but it was your question, so if you're happy, that is good.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Aug 26, 2011 4:31 pm
Reply with quote

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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 26, 2011 5:11 pm
Reply with quote

Robert Sample wrote:
[..]You answer sounds suspiciously parroted


Not so much parroted, as pasted, from the HLASM manual.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Fri Aug 26, 2011 8:12 pm
Reply with quote

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

Active User


Joined: 21 Aug 2008
Posts: 112
Location: hyd

PostPosted: Wed Sep 07, 2011 10:17 am
Reply with quote

Hi dick scherrer,

amode(31) rmode(any) is the answer to your question...
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Wed Sep 07, 2011 8:13 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Sep 07, 2011 8:20 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19243
Location: Inside the Matrix

PostPosted: Wed Sep 07, 2011 9:42 pm
Reply with quote

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

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 07, 2011 10:33 pm
Reply with quote

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
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 SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top