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 / sachin
We never specified pic clause on group level item.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
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?
What is the difference between external and global variables in COBOL?
What is link edit in cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What do you understand by psb and acb?
What are all the divisions of a COBOL program?
Write a cobol program making use of the redefine clause.
what is search and searchall?what is the diffrence between them?give an best example?
how do you reference the rrds file formats from cobol programs
What kind of error is trapped by on size error option?
Differentiate between structured cobol programming and object-oriented cobol programming.
What are the different types of condition in cobol and write their forms.
Why occurs cannot be used in 01 level in COBOL?
What are the various section in data division and briefly explain them.