System Keywords

System keywords (or system variables) are set in the following places:

A flag in SYSKEYWRD system table indicates whether the entry is a true system variable (which produces a warning message if used incorrectly) or not (no warning).

Use the following PSL system keywords which are available in the Profile versions noted. Those marked v6.4 are available in Profile version 6.4 and higher.

v6.1

v6.2

v6.4

Keyword

M Code Equivalent

Modifiable?

X

X

X

%BatchExit

vEXIT

Yes

X

X

X

%BatchRestart

vRESTART

Yes

X

X

X

%ClientVersionID

%VNC

Yes with #ACCEPT

 

X

X

%ColName

vdi

 

 

 

X

%CompanyName

%CO

Yes with #ACCEPT

X

X

X

%CurrentDate

$P($H,",",1)

No

X

X

X

%CurrentTime

$P($H,",",2)

No

 

 

X

%EffectiveDate

EFD

Yes

 

 

X

%Identifier

%IDENT

Yes with #ACCEPT

X

X

X

%InputTimeOut

%TO

Yes with #ACCEPT

 

X

X

%JournalComment

vcomment

 

 

 

 

%Library

%LIBS

Yes

 

X

X

%NewValue

vnew

 

 

X

X

%OldValue

vold

 

X

X

X

%ProcessID

$J

No

 

X

X

%ProcessMode

%O

Yes

 

X

X

%RoutineName

$T(+0)

No

 

 

X

%ServerChannelID

%SVCHNID

Yes with #ACCEPT

X

X

X

%SessionID

%TOKEN

Yes with #ACCEPT

X

X

X

%SystemCurrency

%CRCD

Yes with #ACCEPT

X

X

X

%SystemDate

TJD

Yes with #ACCEPT

 

 

X

%TableName

vtable

 

X

X

X

%UserClass

%UCLS

Yes with #ACCEPT

X

X

X

%UserID

%UID

Yes with #ACCEPT

 

X

X

%UserName

$$USERNAM^%ZFUNC

No

X

 

X

%UserStation

TLO

Yes

 

X

X

%VerifyMode

(%O=2)

No

X

X

X

%VersionID

%VN

Yes with #ACCEPT