Appendix B. CICS Smalltalk classes : ASKTIME command

ASKTIME command
Requests current date and time of day. In Smalltalk, the parameters of the ASKTIME command are contained in two classes: CICSAsktime and CICSAsktimeResult.
See CICS Application Programming Reference for the syntax of the command and a description of its parameters.
Defined instance methods
Parameters supplied to CICS in CICSAsktime
None.
Parameters returned by CICS in CICSAsktimeResult
 
Inherited from CICSResult.
Inherited from CICSResult.
Example
Asks for the time. The result, in the ABSTIME parameter, is in packed decimal format. To display the time, use the FORMATTIME command.
| result abstime formattimeResult |
result := CICS asktime exec.
abstime := result abstime.
formattimeResult := CICS formattime
abstime: abstime;
datesep: $/;
timesep: $:;
exec.
Transcript show: (formattimeResult time).