[comp.os.vms] String descriptors: MACRO-32 & BASIC

mhg@MITRE-BEDFORD.ARPA (Mark H. Granoff) (06/15/87)

I am writing some MACRO subroutines to call VMS system services (in
particular, $GETJPI and $GETUAI).  The idea is to "hide" the complex
item lists so the GETxxx call can be made without parameters while
having all fields of the $GETxxx service available in a global PSECT.

I have been able to get $GETJPI to work from a BASIC call "CALL GETJPI"
where GETJPI.MAR is the MACRO subroutine that shares a global PSECT
with whatever BASIC program is calling it.

I assumed (wrongly) that writing a similar MACRO subroutine for
$GETUAI would be easy...here's the problem:

$GETUAI requires, along with an item list, a username as a fixed
length string desriptor.  I have been able to set this up alright, but
I get the following error when I run a test program:

	       %RMS-x-RNF, record not found

(I forget what `x' is, but it's not important).

Does anyone have any suggestions or answers or kludges or code or
anything to offer??

Any thoughts on the matter would be appreciated.  Any further
information can be supplied (like code segments, etc). 

aTdHvAaNnKcSe

+---------------------------------------------------------------------+
| Mark H. Granoff                       Member of the Technical Staff |
+---------------------------------------------------------------------+
| USMAIL: The MITRE Corporation   | ARPAnet: mhg @ mitre-bedford.ARPA |
|         Burlington Rd. M/S B015 |-----------------------------------|
|         Bedford, MA 01730       | A T & T: (617) 271 - 7030         |
+--------------------------- Disclaimer ------------------------------+ 
|The views expressed herein are my own and do not necessarily reflect |
|                      those of my employer.                          |
+---------------------------------------------------------------------+