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
 

 

What is AMODE and RESIDENCY MODE(RMODE)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
ram_vizag

New User


Joined: 21 Aug 2008
Posts: 92
Location: hyd

PostPosted: Sun Aug 21, 2011 5:11 pm    Post subject: What is AMODE and RESIDENCY MODE(RMODE)
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Sun Aug 21, 2011 5:45 pm    Post subject: Reply to: what is AMODE AND RMODE....NEEDED WITH CLARITY....
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    Post subject:
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: 7905
Location: Bellevue, IA

PostPosted: Sun Aug 21, 2011 6:12 pm    Post subject:
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

New User


Joined: 21 Aug 2008
Posts: 92
Location: hyd

PostPosted: Fri Aug 26, 2011 1:41 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Fri Aug 26, 2011 2:27 pm    Post subject: Reply to: what is AMODE AND RMODE....NEEDED WITH CLARITY....
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: 7905
Location: Bellevue, IA

PostPosted: Fri Aug 26, 2011 4:31 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Fri Aug 26, 2011 5:11 pm    Post subject:
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

Site Director


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

PostPosted: Fri Aug 26, 2011 8:12 pm    Post subject:
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

New User


Joined: 21 Aug 2008
Posts: 92
Location: hyd

PostPosted: Wed Sep 07, 2011 10:17 am    Post subject:
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

Senior Member


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

PostPosted: Wed Sep 07, 2011 8:13 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Sep 07, 2011 8:20 pm    Post subject: Reply to: what is AMODE AND RMODE....NEEDED WITH CLARITY....
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

Site Director


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

PostPosted: Wed Sep 07, 2011 9:42 pm    Post subject:
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: 7905
Location: Bellevue, IA

PostPosted: Wed Sep 07, 2011 10:33 pm    Post subject:
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    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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Calling macro via rexx in batch mode. SanaR CLIST & REXX 15 Tue Mar 08, 2016 4:46 pm
No new posts Edit not allowing in dataset after Po... krsenthil85 TSO/ISPF 8 Mon Jul 13, 2015 10:27 pm
No new posts VSAM share mode ashim prodhan JCL & VSAM 7 Wed Jun 03, 2015 7:54 pm
No new posts HEX ON on View mode Vs Browse Mode krsenthil85 TSO/ISPF 3 Wed May 13, 2015 3:03 am


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