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


Please Help Members By Posting Answers For Below Questions

What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

710


What is a scope terminator give example?

657


how do you reference the esds vsam file formats from cobol programs

634


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061






Can you please let me know the centre name of INS certification in Kolkata.

1715


What is redefines clause in COBOL?

851


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


What is the usage of comp fields in cobol?

660


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1230


Explain the configuration section of a cobol program with examples of syntax.

659


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

735


) How do u handle errors in BMS macro?

1429


What are the pertinent COBOL

2045


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

1931