I have a display file that is defined as decimal date.I want it to fetch the system date and be used a variable in my rpg program.
I have defined a PF that has a date variable 6 length 0 decimal PACKED.I am aware that by using *DATE in display file we can fetch system date.But i want to refrain using that format since i would further like to perform operations like calculating Period etc by using this variable.
Please guide how can i go about flashing a system date on display and further having that variable available in my RPG program.
Thanks in advance
I have defined a PF that has a date variable 6 length 0 decimal PACKED.I am aware that by using *DATE in display file we can fetch system date.But i want to refrain using that format since i would further like to perform operations like calculating Period etc by using this variable.
Please guide how can i go about flashing a system date on display and further having that variable available in my RPG program.
Thanks in advance
Comment