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
What are various search techniques in cobol? Explain.
How do you reference the following file formats from cobol programs?
Why occurs cannot be used in 01 level in COBOL?
What are the different rules of SORT operation?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
i need a small 3d program using inline and outline.
Define static linking and dynamic linking.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
What is the usage of comp fields in cobol?
Why would you use find and get rather than to obtain?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
what is difference between cobol and cobol/400
What is the Purpose of Pointer in the string?
What rules are followed by the search verb.