%SMFCLOCK C CHRSTAMP BINSTAMP ENDSTAMP DIFF %SMFCLOCK B CHRSTAMP BINSTAMP ENDSTAMP DIFF %SMFCLOCK D CHRSTAMP BINSTAMP ENDSTAMP DIFF %SMFCLOCK G CHRSTAMP BINSTAMP ENDSTAMP DIFF C converts from BINARY to CHAR (format CCYY/MM/DD HH:MM:SS) B converts from CHAR to BINARY D calculates difference G gets date and time from the system where CHRSTAMP W 19 A BINSTAMP W 8 A ENDSTAMP W 8 A DIFF W 8 A
SMFCLOCK is to be used with 8-byte binary TOD data. Output is in the format CCYY/MM/DD HH:MM:SS.
TIMECONV converts a 4-byte binary time to HH:MM:SS:hh.
If you are converting a SMF record defined as 4 B (time), then it should be passed to TIMECONV.
If you are converting a SMF record defined as 8 B (TOD -- date and time), then it should be passed to SMFCLOCK using the C parameter.