...user


A Try using the …USER variable in QUEBATCH.  From 10-34 DMS-Plus Utilities Reference Manual

...TTY

The ...TTY string symbol is replaced by the terminal type, such as SCOPE

or HARDCOPY. It is replaced by nothing if the terminal type cannot be

determined.

...USER

The ...USER string symbol is replaced by the username of the current process.

$       !

$ !****************************************************************

$       !

$       ! Get the user's authorized glaccts

$       !

$RUN DMS:SAVE

RECALL

USERS:[FISCAL.SAV]STATUS_...USER
 

QThe ultimate purpose for which I needed the lexical for username isn’t being served.  The batch I’ve written needs to have the lexical used as a logical.  Is there a way to turn the lexical into a logical?

$       !

$ ZZZ=F$edit(F$getjpi("","username"),"compress")

$ SHO SYMBOL ZZZ

  ZZZ = "SYSMGR "

$       !

$ !****************************************************************

$       !

$       ! Get the user's authorized glaccts

$       !

$RUN DMS:SAVE

SAVE V6.8-03 - DMS-Plus Pointer File Saving Program         03:10 PM

Copyright (c) 2000, Campus America, Inc.

Type "HELP" for assistance

Option? RECALL

REC:  Pointer File Name? USERS:[FISCAL.SAV]STATUS_ZZZ         I want to use the username here

?Can't find file or account - Pointer file SYS$SYSDEVICE:[FISCAL.SAV]STA

TUS_ZZZ.PTR;