GETMAIN 
Author Message
 GETMAIN

     I'm a bit confused about how to get GETMAIN to give me an amount of
memory determined at execution time, rather than assembly time.  I seemed
to have no problems with

     GETMAIN R,LV=1000

What would I have to specify to get, say, a number of bytes equal to the
number of bytes in register 2?  GETMAIN always returns a chunk of memory
alligned on a doubleword boundary, right?





Thu, 12 Aug 1993 04:05:45 GMT  
 GETMAIN

Quote:

>     I'm a bit confused about how to get GETMAIN to give me an amount of
>memory determined at execution time, rather than assembly time.  I seemed
>to have no problems with

>     GETMAIN R,LV=1000

>What would I have to specify to get, say, a number of bytes equal to the
>number of bytes in register 2?  GETMAIN always returns a chunk of memory
>alligned on a doubleword boundary, right?

 How about
        GETMAIN R,LV=(2)
        or
        GETMAIN R,LV=0(2)
 I believe either will work.  The first will definitely work.

 Yes, you get doubleword alignment.

--
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

  Northern Illinois Univ.
  DeKalb, IL 60115                                   +1-815-753-6940



Thu, 12 Aug 1993 09:31:26 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. GETMAIN/FREEMAIN routines in MVS Cobol/370

2. GETMAIN

3. Getmain Help

4. GETMAIN

5. MVS: GETMAIN / FREEMAIN

6. GETMAIN limitations in COBOL??

7. GETMAIN ACROSS LINKAGE IN COBOL

8. How to Do a GETMAIN in VS COBOL II Batch?

9. Arghh! Difference between 'GETMAIN R,LV=(0)' and 'STORAGE OBTAIN,LENGTH=(0)'

 

 
Powered by phpBB® Forum Software