home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!uwm.edu!zazen!doug.cae.wisc.edu!dafnioti
- From: dafnioti@cae.wisc.edu (Petros Dafniotis)
- Subject: Re: Problem using $GETUAI
- Organization: U of Wisconsin-Madison College of Engineering
- Date: 5 Nov 92 14:07:48 CST
- Message-ID: <1992Nov5.140749.12816@doug.cae.wisc.edu>
- References: <1992Nov5.184235.12119@wega.rz.uni-ulm.de>
- Lines: 41
-
- In article <1992Nov5.184235.12119@wega.rz.uni-ulm.de> KARGL@rzmain.rz.uni-ulm.de (ComRam) writes:
- >Starting with the problem of finding the Real Name to a given Account I
- >first wrote a little C program which does the job and works quite fine.
- >Then I started to do the same thing in FORTRAN (Just for fun:-) and this
- >one refuses to work. The SYS$GETUAI returns a SS$_BADCONTEXT. Can anyone
- >tell me whats wrong with this thing?
- >
- >--------------------------------------------------------------------------
- >
- >* FINDREAL.FOR --- Find Owner Name --- (C) 1992 by ComRam
- >
- > PROGRAM Findreal
- >
- ... [code deleted] ...
- >
- > Status = SYS$GETUAI (0,0,%DESCR(Username(1:I)),UAI_LIST,0,0,0)
- ^ ^ ^ ^ ^
- >
- > WRITE (*,*) 'Status : ',Status,' Owner : ',Owner
- >
- > STOP
- > END
- >
-
- Frank,
-
- using HELP SYSTEM $GETUAI you see that where you put 0 you really need
- null argument. Therefore, try:
- Status = SYS$GETUAI(,,%DESCR(Username(1:I)),UAI_LIST,,,)
- This works for me. Hope it helps.
-
- >------------------------------------------------------------------------------
- > ComRam (in real life : Frank Kargl) Student consultant for programming
- > IP : COMRAM@RZ.UNI-ULM.DE University of Ulm Germany
- > DECnet(Belwue) : 50186::KARGL All statements posted above are
- > Bitnet : KARGL@DULRUU51.BITNET my personal oppinion ONLY !
- >------------------------------------------------------------------------------
-
- Petros Dafniotis (AKA VMS4Ever)
- Chem Engr Dept, UW-Madison
- e-mail: dafnioti@cae.wisc.edu
-