Please enable JavaScript to view this site.

A-Shell Reference

Updated February 2017; see History

xcall MIAMEX, MX_ABOUT, prdname, version, serial, coname, key, licnodes, phynodes, lognodes, licoptions, expflags, reldate, expdate, inifile {,jobtbl'fspec, jobtbl'inode, jobtbl'cdate, jobtbl'ctime}

MX_ABOUT (MIAMEX 93) retrieves several pieces of information relating to the current license and environment. It is mainly used by ABOUT.LIT, but might be useful within in application to check for maintenance expiration, number of licensed users, etc. A quick look at the output of ABOUT.LIT will answer many questions about the parameter output.

Parameters

All parameters are [out].

Parameter

Type

Description

prdname

String

will return the A-Shell platform-specific name, e.g. "A-Shell/Linux" or "A-Shell/Windows/32".

version

String

will return the A-Shell version string, e.g. "Ver 6.5(1721)".

serial

(Num)

will return the serial number.

coname

String

will return the company name that the license was issued to.

key

String

will return the license key (aka PIC code).

licnodes

(Num)

will return the maximum number of nodes licensed.

phynodes

(Num)

will return the current number of physical nodes in use.

lognodes

(Num)

will return the current number of logical nodes in use. (The logical node count should count each job, whereas the physical count may be less if multiple jobs are identified as being connected with the same session or are running in background.)

licoptions

String

will return a string of descriptive tokens identifying license options, such as "COM-XCALL", "PolyShell", etc.

expflags

(Num)

Returns indication of the license status combined with a flag indicating whether there is a runtime (vs. maintenance) expiration. See EF_xxx flags in ashell.def, reproduced below.

reldate

String

will return the release date of the current executable (dd-mon-yyyy).

expdate

String

will return the maintenance or runtime expiration date of the license (dd-mon-yyyy).

inifile

String

will return the fully qualified native filespec of miame.ini.

jobtbl’fspec

String

will return the fully qualified native filespec of the jobtbl.sys file.

jobtbl’inode

(Num)

will return the inode of the jobtbl.sys file. (Applies to Unix only; will be set to 0 under Windows.)

jobtbl’cdate

String

will return the creation date (or last status change date) of the jobtbl.sys file (dd-mmn-yy) format. Note that under Unix, the "c date" will be updated by any change to the privileges or ownership of the file, so it may not reliably indicate the actual creation time.  

jobtbl’ctime

String

will return the creation time (or last status change time) of the jobtbl.sys file (hh:mm) format.

 

EF_xxx Flags (for expflags parameter)

Symbol

Value

Description

EF_NORMAL

0

license good

EF_DEMO

1

demo mode

EF_BADKEY

2

bad key

EF_BADCO

3

bad company

EF_BADOS

6

bad os

EF_EXPIRED

7

expired runtime

EF_EXPIRED_EXE

8

expired maint

EF_ATSD

10

ATSD not licensed

EF_BADMAC

12

MAC address not valid

EF_SERIAL

13

serial # out of range

EF_BADKEYFMT

14

bad key format

EF_BADKEYVER

15

bad key version

The following bit is independent of those above

EF_RUNTIME

&h020

runtime expiration, else maint

 

History

2017 February, A-Shell 6.3.1544:  Updated expflags. Previously, it returned only 0 (maintenance) or 1 (runtime), plus 16 to indicate expired.