home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!decwrl!pa.dec.com!engage.pko.dec.com!nntpd.lkg.dec.com!telfon.enet.dec.com!mailman
- From: mailman@telfon.enet.dec.com (Steven M. Mailman)
- Subject: Re: Getting the USERNAME in VAX Pascal
- Message-ID: <1992Sep6.184804.7906@nntpd.lkg.dec.com>
- Sender: usenet@nntpd.lkg.dec.com (USENET News System)
- Organization: Digital Equipment Corporation
- Date: Sun, 6 Sep 1992 19:39:33 GMT
- Lines: 30
-
-
- In article <1992Sep4.194704.20456@cs.unca.edu>, snodgras@cs.unca.edu (Ryan Snodgrass) writes...
-
- >Can anyone tell me the best way to get the Username using VAX Pascal and
- >any libraries. Thanks. Examples will be helpful.
-
- [INHERIT('sys$library:starlet',
- 'sys$library:pascal$lib_routines')]
-
- PROGRAM get_name ( output );
-
- VAR
- username : PACKED ARRAY [1..12] OF Char;
- status : Integer;
-
- BEGIN
- status := lib$getjpi(jpi$_username,,,,username);
- Writeln(username);
- END.
-
- Also, there are many on-line examples in directory PASCAL$EXAMPLES
- (if it was installed along with compiler).
-
- ------
- Steve Mailman
- Digital Equipment Corporation
- mailman@tle.enet.dec.com
- Disclaimer: The opinions and statements expressed by me are not
- necessarily those of Digital Equipment Corporation.
-
-