Have you tried defining the dates within the "D" specs individually (e.g.) DUSAFDate s d datfmt(*usa) USA From Date Dave
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
Mixing dates *mdy / *iso
Collapse
X
-
Mixing dates *mdy / *iso
I'm testing a display file that has 11 date fields, 10 dates are *mdy, 1 is a parameter coming into my program that is *iso format. Within the header spec of the RPG program, datfmt(*mdy) is defined. The issue happens when I try to move the parameter (iso date field) into the display file (iso date field), because of the *mdy header, I cannot compile the program. The program wants my *iso date field to be a *mdy field. Now if I remove the *mdy from the header spec, then I have the reverse issue, my 10 date fields that are *mdy, tries to be *iso. I'm guessing I need to bring my *iso parm into my program, convert it to a *mdy and then move that into my display file field, thus defining all 11 date fields to *mdy and forget trying to mix the *iso & *mdy. Any thoughts? Diane Mueller
Comment
-
Mixing dates *mdy / *iso
Along with Joe's post that pointed me to the %date, I wanted to post a link that was helpful with my date issues: http://www.itjungle.com/fhg/fhg051904-story01.html
Comment
Comment