[Info-vax] multiple RMS records in one call (Re: wrong file format)

Craig A. Berry craigberry at nospam.mac.com
Thu Jan 7 18:48:57 EST 2021


On 1/7/21 2:35 PM, 1tim.... at gmail.com wrote:
> It's a lot easier to create a service that grabs a bunch of records
> in a single call than to have to loop and accumulate the data for the call.

So why not use one of the various mechanisms that already do that? E.g.,
to get a list of all the usernames on your system, do:

$ perl -"MVMS::IndexedFile" -e 
"tie(%uaf,VMS::IndexedFile,'sys$system:sysuaf.dat',0); print join 
qq/\n/, keys(%uaf);"
APACHE$WWW
CRAIG
DEFAULT
HTTP$NOBODY
<snip>

All of that could easily be accumulated in an array, and there are a
variety of other ways to capture RMS data into whatever data structures
you want.  Python no doubt has other mechanisms.  I don't think making
it into a system service gets you much over what's already out there.



More information about the Info-vax mailing list