Hi Acucobol programmers.
I develop my application by use of Acucobol 4.3.1 compiler for Windows, and I have a problem:
How to make ACCEPT statement to accept leading zeros?
For example, I have this in working storage:
01 DATE-1.
03 DATE-1-DAY PIC 99.
03 DATE-1-MONTH PIC 99.
03 DATE-1-Year PIC 99.
and this in my screen-section.
01 S-DATE1.
03 SD1, entry-field, line 2, col 5, value DATE-1-DAy.
.....
When I enter for example '01' for SD1 (DATE-1-DAY) it shows
me ' 1' ; I'd like it to remain '01' after ACCEPT. How?
I develop my application by use of Acucobol 4.3.1 compiler for Windows, and I have a problem:
How to make ACCEPT statement to accept leading zeros?
For example, I have this in working storage:
01 DATE-1.
03 DATE-1-DAY PIC 99.
03 DATE-1-MONTH PIC 99.
03 DATE-1-Year PIC 99.
and this in my screen-section.
01 S-DATE1.
03 SD1, entry-field, line 2, col 5, value DATE-1-DAy.
.....
When I enter for example '01' for SD1 (DATE-1-DAY) it shows
me ' 1' ; I'd like it to remain '01' after ACCEPT. How?