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

2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2118


How do u write test cases?

1638


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

2105


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


What are different data types in cobol?

689






What is a SSRANGE and NOSSRANGE?

820


In which area will you utilize 88 level items in cobol?

722


Discuss about changing dataset name in proc.

762


What are the different rules for performing sort operation?

763


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


How you can read the file from bottom?

660


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3720


Why would you use find and get rather than to obtain?

690


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897