What is wrong with the following data declaration?
01 W-DATE PIC X(6).
05 DD PIC 99.
05 MM PIC 99.
05 YY PIC 99.
(a) Nothing is wrong.
(b) Under W-DATE all level 05 items are having a PIC 99 but
level
01 has PIC X(6).
(c) PIC can't be specified for a group item.
(d) DD, MM, and YY are invalid datanames.

Answer Posted / craig

In previous answer,

01 W-DATE-NUM PIC 9(6).
01 W-DATE REDEFINES W-DATE-NUM.
05 DD PIC 99.
05 MM PIC 99.
05 YY PIC 99.

should be the code block at the bottom, sloppy cut and
paste, sorry.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

) how do u code after getting data?

1578


What are the various section in data division and briefly explain them.

687


how do you define single dimensional array and multidimensional array in your cobol?

665


Whats the difference between search & search ALL?

5243


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

705






how do you reference the ksds vsam file formats from cobol programs

649


What are the cobol coding sheets?

657


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

765


Difference between array and sub-script ?

1157


What is amode(24)?

678


What is report-item in COBOL?

702


what is difference between cobol and cobol/400

21550


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1921


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

639


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

704