;Last event performed on CST log entry
; Input -- SCLOG CST log IEN
; Output -- event
LSTREQ(SCLOG)
;Returns the # of the last request for a CST
; Input -- SCLOG CST log IEN
; Output -- Last request ien
LSTACT(SCLOG)
;Last action taken on CST log entry
; Input -- SCLOG CST log IEN
; Output -- Action^Description
STOPQ
UPDREC(SCLOG,SCIEN,SCCVT)
;Update CST/AST last entry and number of records
; Input -- SCLOG CST/AST log IEN
; SCIEN Last entry IEN
; SCCVT 'AST' or 'CST' for type of template
; Output -- None
CHKACT(SCLOG,SCCVEVT,SCACT,SCCVT)
;Check log entry action for a specific log event
; Input -- SCLOG CST/AST log IEN
; SCCVEVT CST/AST event
; SCACT Action
; SCCVT 'AST' or 'CST' for type of template
; Output -- 1=Found and 0=Not Found
HISQ
HIS(SCEVDTM,SCLOG,SCACT,SCCVEVT,SCCVFL,SCTSK)
; CST/AST Log history
; Input -- SCEVDTM Event date/time
; SCLOG CST/AST log IEN
; SCACT Action
; SCCVEVT Last log status
; SCCVFL 'AST' or 'CST' file # (404.98 or 404.99)
; SCTSK task # [optional]
; Output -- None
;Update CST or AST log entry
; Input -- SCCVT 'AST' or 'CST' for type of template
; SCLOG CST or AST log IEN
; SCSTDT Start date [optional]
; SCENDT End date [optional]
; SCOMBUL Bulletin upon completion [optional]
; SCTSK Task # [optional]
; SCVOL Volume set [optional]
; SCACT Action [optional]
; Output -- None
STOP(SCLOG,SCREQ,SCSTOPF)
;Stop conversion/estimate
; Input -- SCLOG CST log IEN
; SCREQ CST request IEN
; SCSTOPF Force exit [optional]
; Output -- SCSTOPF 1=Stopped and 0=Not stopped