Back to SPR List Previous Next
New function MEMINFO gets status of a member
New Feature Closed - Fixed Found:2002.20.28 *********** Fixed:2002.20.30 11 DEC 2003

DETAILS
 New feature. MEMINFO function returns information about a named member.
EXAMPLE PROGRAM
 n = meminfo(fully_qualified_member_name,info_type)
 Specify a fully qualified member name (i.e. with family/password if
 necessary) and use a member type (e.g. :T) if referring to specific member
 when possibly others of same name. This is either a quoted string or a
 string variable.
 info_type can take values 1 - 8
 1 =  member count
 Returns: 0 - does not exist,
 1 :T,
 2 :E
 4 :O
 8 :V
 Additive values are returned if multiple versions present e.g. 3 = :T + :E
 (If you specify a qualifed member name with a member type, will return
 either 0 or 1,2,4,8 if member is present/absent regardless as to whether
 other versions exist)


 2 =  member password (public)
 Returns: 0 = No password, 1 = Password + Public, 2 = Password + Not public

 3 = Length in bytes of member
 4 = Creation date of  member
 5 = Creation time of  member
 6 = Modification date of member
 7 = Modification time of member
 8 = Member out of date or not (Only really applies to :E or :O. If not fully
 qualified name, applies to first of any matching :E or :O or :V if present.
 Returns 0 for :T.
 Returns for :E
  0 Not out of date
 -1 Wrong version of SIR (This version is specific to the stored format -
 does not change with minor versions and may not change with major versions.)
 -2 Default database not connected
 -3 Database creation date/time mismatch
 -4 Wrong PQL Retrieval version (This version is specific to whether changes
 to the PQL compiler has meant that executables should be recompiled - does
 not necessarily change with minor versions.)
 -5 CIR/Record Schema level mismatch

 For :O
  0 Not out of date
 -1 Wrong version of SIR
 -2 Default database not connected
 -3 Database creation date/time mismatch
 -4 Mismatched subroutine name
 -5 CIR/Record Schema level mismatch

 For :V
  0 Not out of date
 -1 Wrong version of SIR
 -2 Mismatched EVB name



WORKAROUND
Most of this information is available for the current default member via SYSTEM functions.
Back to SPR List Previous Next