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
 

 

Rmode and Amode: options at the time of compilation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
mf_me

New User


Joined: 18 Jul 2005
Posts: 3

PostPosted: Tue Jul 19, 2005 9:08 pm    Post subject: Rmode and Amode: options at the time of compilation
Reply with quote

what are these options at the time of compilation. I know the values these 2 parameters can have is 24,31 or ANY , that it has something to do with above or below the 16 Mb line.
but finally i am all confused
can someone explain in simple way
Back to top
View user's profile Send private message

brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Tue Jul 19, 2005 11:53 pm    Post subject: Re: Rmode n Amode
Reply with quote

Hi,

When you run your COBOL programs, the programs and the data that they use reside in virtual storage. Storage that you use with COBOL can be either below the 16-MB line or above the 16-MB line but below the 2-GB limit. Two modes of addressing are available to address this storage: 24-bit and 31-bit.

Addressing mode (AMODE) is the attribute that tells which hardware addressing mode is supported by your program: 24-bit addressing, 31-bit addressing, or either 24-bit or 31-bit addressing.

Residency mode (RMODE) is the attribute of a program load module that identifies where in virtual storage the program will reside: below the 16-MB line, or either below or above.
Back to top
View user's profile Send private message
Sasi Kiran Patha
Warnings : 2

New User


Joined: 19 Nov 2006
Posts: 73
Location: Hyederabad

PostPosted: Thu Oct 04, 2007 10:23 am    Post subject: Reply to: Rmode n Amode
Reply with quote

hi,

The definitions seem fine.

I would prefer internals or basics of this concept in terms of OS concepts and Computer Architecture concept.

Whenever i come accross these definitions things appear vague because of missing the essential basics or internals.

Probably an example with numbers consisting of bits and bytes and programming situations would clarify me.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Oct 04, 2007 10:29 am    Post subject:
Reply with quote

Sasi,

Quote:
Whenever i come accross these definitions things appear vague because of missing the essential basics or internals.

Why dont you refer some manuals for BASICS/INTERNALS? A lot available on the net.
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: Thu Oct 04, 2007 12:13 pm    Post subject:
Reply with quote

Hello,

Another way to think of this is that with 24 bits the largest number that can be represented is 16 meg. If you only have 24 bits, you cannot address beyond 16 meg, hence the restriction.

It is also the source of the "16 meg line".

Unless you get into other than application programming, you will not directly be concerned addressability issues. Your use of amode and rmode will not be a program by program decision - these will most likely be set system or application wide.
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DSNACCOX (can it be run on 1 db/ts, t... SRICOBSAS DB2 5 Sat May 06, 2017 12:59 am
No new posts LISTIDR compiled date/time jerryte IBM Tools 3 Thu Apr 20, 2017 7:37 pm
No new posts Application not run by time HH:MM tri... jzhardy IBM Tools 1 Sun Apr 09, 2017 3:22 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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