Goto: 4C Home | 4C Docs | System PCLs List sys.log_getattr()

sys.log_getattr()

Purpose:
sys.log_getattr() returns an attribute associated with a single log rcd.
Usage:
val = sys.log_getattr(<lclname>,<attrtype>,[ <filename> ]);
Arguments:

alpha <lclname> - The name specified in sys.open_log()

integer <attrtype> - One of
     LOG_ATTR_DATE
     LOG_ATTR_TIME
     LOG_ATTR_ISEQUENCE
     LOG_ATTR_NFIELDS
     LOG_ATTR_NPKFIELDS
     LOG_ATTR_UPDTYPE
     LOG_ATTR_FILENAME
     LOG_ATTR_USER
     LOG_ATTR_APPPROG
     LOG_ATTR_FCPROG
     LOG_ATR_CLIPADDR
     LOG_ATTR_STATUS
     LOG_ATTR_FILESTATUS
     LOG_ATTR_FULLPATH
     LOG_ATTR_SFTIME

alpha <filename> - Optional argument only needed when <attrtype> is LOG_ATTR_FILESTATUS.
Returns:
The value of the requested attribute is returned in <val>. <val> can be either an alpha variable or an integer variable.
Where Used:
sys.log_getattr() can be called anytime a log file is open. Except for LOG_ATTR_STATUS and LOG_ATTR_FILESTATUS, there needs to be a current log rcd when calling sys.log_getattr().
Example:
The log.view.det and the log.view.key programs have examples of using sys.log_getattr(). Both programs are in the 4cSys application.
Description:
sys.log_getattr() returns an attribute associated with a single log rcd. The attributes that can be queried are as follows:
Bugs/Features/Comments:
See Also:
sys.log_open()
sys.log_close()
sys.log_seek()
sys.log_read()
sys.log_getname()
sys.log_getval()
sys.log_copyflds()
sys.log_error()


Back to Top