Glenn Miller wrote:

As my luck goes ( which is usually not great ), the coding of the
example from the manual is not correct.  From code from the manual:

         IARV64  REQUEST=GETSTOR,SEGMENTS=NUMSEG,
              ORIGIN=O,
              RETCODE=LRETCODE,RSNCODE=LRSNCODE,
              MF=(E,V64L)

The NUMSEG label was coded as below:
NUMSEG     DC    D'2'


The correct coding of the value for the NUMSEG label should be:

NUMSEG     DC    AD(2)

When I first started writing 64-bit programs back in 2002, I found the IARV64 macro would generate D'n' instead of AD(n) if you coded SEGMENTS=n where 'n' was an integer value! Naturally, the request would always fail with a DC2 abend. I opened a PMR with IBM that resulted in APAR OW54887. (How embarrassing for the RSM folks!) It never occurred to me to check to see if documentation samples were wrong as well. They were probably provided by the same genius that coded the macro. :-D

--
-----------------------------------------------------------------
| Edward E. Jaffe                |                                |
| Mgr, Research & Development    | [EMAIL PROTECTED]    |
| Phoenix Software International | Tel: (310) 338-0400 x318       |
| 5200 W Century Blvd, Suite 800 | Fax: (310) 338-0801            |
| Los Angeles, CA 90045          | http://www.phoenixsoftware.com |
-----------------------------------------------------------------

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to