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
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
i need a small 3d program using inline and outline.
What are declaratives and what are their uses in cobol?
What the difference is between continue and next sentence?
How can you get the ksds file records into your cobol program?
What kind of error is trapped by on size error option?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Can a Search can be done on a table with or without Index?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
Define cobol?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What rules are to be followed while using the corresponding options?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is rmode(any) ?