IJAH400@INDYVAX.BITNET (03/11/88)
Oops. This was a matter of me not using my brain when I should. Getting the JPI$_IMAGNAME using SYS$GETJPI works great, it just that when I looked at the system service documentation, I got the silly idea (simply because the documentation of SYS$GETJPI said so) that the returned string could only be 39 bytes long. It can *really* be up to the length of a full RMS filespec (255 bytes). The documentation I have claims to be for VMS version 4.4, April 1986. I have since been finding out that I shouldn't believe any of the VMS documentation as far as the claims for maximum string length ($GETUAI and $SETUAI are other particularly horrible examples, for about all the string items that are file specifications). Hopefully the VMS 5.0 documentation will at least be caught up with VMS 4.0. Gee. Now I remember why on TOPS-20, if we *really* wanted to know how to use a system call, we'd look at the source code of the monitor... Thanks to all who helpfully pointed out my problem... - Jim Harvey IJAH400@INDYVAX.BITNET Arnold's Laws of Documentation: 1.) If it should exist, it doesn't. 2.) If it does exist, it's out of date. 3.) Only documentation for useless programs transcends the first two laws.