Let me take a shot.
The rules for dates/times are as follows:
When a date value is specified in this PARM statement, it must be specified in one of the following formats mmddyy, mmddyyyy, or Cyymmdd. When a user types a date in the command at run time, it must be specified in the job-date format. The job date separator may be used when the date is entered. If the separator character is used, the date must be enclosed in apostrophes.
When a user types a time in the command at run time, it must be specified in the format hhmmss. The job time separator may be used when the time is entered. If the separator character is used, the time must be enclosed in apostrophes.
in your returned string.
HTH and is correct Vern
Does anyone have an example of a Prompt Override Program involving dates and times that they would be willing to share? Or pointers to online examples are fine as well. Would like to know how these elements need to be formatted. I would like them to be displayed as mm/dd/yyyy and hh:mm:ss.
Does one *have* to use a Choice Program as well? Some of the archives on the topic connect the two, although my mind is still in MMM (Monday Morning Mode).
FWIW, this is v5r2. I have looked at chapter 9 in the CL Programming ref.
This mailing list archive is Copyright 1997-2013 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact