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


Please Help Members By Posting Answers For Below Questions

Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

704


Write the code implementing the perform … varying.

637


Are you comfortable in cobol or jcl?

634


What are the different types of condition in cobol and write their forms.

651


Which mode is used to operate the sequential file?

658






What are literals?

622


What rules are to be followed while using the corresponding options?

627


What the difference is between continue and next sentence?

651


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

634


what happens if parmparameter passes zero bytes to the program

1653


What is a scope terminator give example?

652


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2721


How do you reference the following file formats from cobol programs?

691


what is the difference between COBOL2 AND COBOL390?

2443


What is the difference between goback, stop run and exit program in cobol?

914