REDIFINE in COBOL with different data-type.
Posted: Sat Oct 14, 2017 8:00 pm
Hi,
If I have a COBOL declaration like this:
and I do a numeric check on the WS- like this:
Will WS-B be considered as numeric value or not?
Is it a good coding practice?
If I have a COBOL declaration like this:
Code: Select all
01 WS-A PIC X(20) VALUES SPACES.
01 WS-B REDEFINES WS-A PIC 9(10).
Code: Select all
IF WS-B IS NUMERIC
do this
END-IF
Is it a good coding practice?