Edit date presentation

You need to handle the presentation of dates on display and printer files differently, depending on how they are stored.

Your application program has to pass the format of the date you want to convert and the date itself to the CL program. The CL program assumes that the job attributes represent the way the user expects to see date fields edited. It retrieves these values and does the conversion, conforming to these values, and passes back the date in that way. The *ISO, *USA, *EUR, and *JIS values have a fixed separator that cannot be changed. If the TOFMT parameter contains one of these values, the TOSEP value is ignored.

Related concepts
DATE
date format (DATFMT)
date separator (DATSEP)