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 / anshu puri

cobol dont allow to use PIC clause at 01 level

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i need a small 3d program using inline and outline.

1640


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1701


how can i see junk values in dclgen or in hostvariable of comp ?

2544


Why did you choose to work with ibm mainframe cobol programming?

631


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

644






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?

6832


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

946


Write a program to enter and display the names of students in a class using the occurs clause.

654


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


what happens if parmparameter passes zero bytes to the program

1667


How do define dynamic array in cobol.

671


What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


How many sections are there in data division in COBOL?

678


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1772


What is the difference between Call and a Link?

700