home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!ko.hhs.dk!ARNE
- From: ARNE@ko.hhs.dk (Arne Vajhxj)
- Newsgroups: comp.os.vms
- Subject: Re: RE: get first name
- Message-ID: <0C6CBAB4963FC0905E@sb.hhs.dk>
- Date: 17 Aug 92 06:55:00 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 34
-
- > >You can not get the owner-fiels from SYSUAF by DCL (not until DEC implements
- > >F$GETUAI !).
- >
- > You sure about that?
- >
- > $ if p1 .eqs. "" then p1 = f$getjpi(0,"username")
- > $ say := write sys$output
- > $ prv = f$setprv("sysprv")
- > $ open/read/share uaf 'f$parse("sysuaf","sys$system:.dat")
- > $ prv = f$setprv(prv)
- > $ read/key=&p1/error=x uaf rec
- > $ close uaf
-
- I do know that, but I have apperently made some susumption, that you did
- not make.
-
- - The user did not want to hardcode the first name in his com-file, so
- I assume that the com-file will be used by multiple users.
- - I assume that not many users have sysprv on that machine.
-
- So that little (undocumented and unsupported - but who cares about that)
- hack about reading SYSUAF.DAT do not sound as a good solution.
-
- The good thing about SYS$GETUAI (and the lexical F$GETUAI - if it existed !)
- is that you can extract information about your own user-name without any
- privs !
-
- Arne
-
- Arne Vajhxj local DECNET: KO::ARNE
- Computer Department PSI: PSI%23831001304030::ARNE
- Business School of Southern Denmark Internet: ARNE@KO.HHS.DK
-
-
-