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
) how do u code after getting data?
What are the various section in data division and briefly explain them.
how do you define single dimensional array and multidimensional array in your cobol?
Whats the difference between search & search ALL?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
how do you reference the ksds vsam file formats from cobol programs
What are the cobol coding sheets?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Difference between array and sub-script ?
What is amode(24)?
What is report-item in COBOL?
what is difference between cobol and cobol/400
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?