TIMEDATE
Update Hilmas system variables containing time and date.
If system date or time are used, this statement should be ever used, for example at last one time at the start of the program. Otherwise, the Hilmas system variables containing time and date are empty.
These are the system variables filled with TIMEDATE:
$DATE DS 0 CL8 Date in European format DD/MM/YY $DAY DS CL2 DS CL1 Will be filled with '/' $MONTH DS CL2 DS CL1 Will be filled with '/' $YEAR DS CL2 $TIME DS 0 CL8 Time in the form HH:MM:SS $HH DS CL2 DS CL1 Will be filled with ':' $MM DS CL2 DS CL1 Will be filled with ':' $SS DS CL2
Note that :
- $DATE and $TIME variables are defined with subfields for more flexibility
- date is in european format, that is day number first; if US format is needed, must be used a user variable filled with contents of single fields $MONTH, $DAY and $YEAR.
- All fields are strings: you must use EDIT2NUM statement to convert these fields in numbers putting it in your variables
- if you want convert this date in other formats, you must use EDIT2NUM to convert day, month and year in variables $DAYH, $MONTHH and $YEARH (that is in integers Half), then you can use CONVDATE statement to do this conversion.