First time here?
Back again?


 
 

How can I create a header file that includes date and time?

CATEGORY: PROGRAMMING
TYPE: MACRO
IMS VERSION: ALL
PLATFORM: ALL

The current date and time is stored in the system variables SYSTEM.DATE and SYSTEM.TIME, respectively.
You might use these variables in an OUTPUT command as follows:
OUTPUT("(Today's date is ", SYSTEM.DATE, " The time is ", SYSTEM.TIME, ")",NEWLIN)

Back to Frequently Asked Questions