Inserting a Timestamp into the output file

There's no built-in Suprtool function for inserting the current time. However, you can use HP variables and command I/O redirection.

    > define timestamp,1,8
    > echo extract timestamp = "!HPTIMEF" > foo
    > use foo

This will insert an X8 field called "timestamp" into each output record. The timestamp contains the time the data was extracted.

[Hans Hendriks]

....Back to the Suprtool Q&A Page