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
Write the code implementing the perform … varying.
What guidelines should be followed to write a structured cobol prgm?
Write some characteristics of cobol as means of business language.
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
How you can characterize tables in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
How arrays can be defined in COBOL?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Explain about different table spaces.
How do you differentiate between cobol and cobol-ii?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are the various section in data division and briefly explain them.
In COBOL programming, what is PERFORM? What is VARYING?
What is cobol?