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
i need a small 3d program using inline and outline.
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.
how can i see junk values in dclgen or in hostvariable of comp ?
Why did you choose to work with ibm mainframe cobol programming?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
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?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
Write a program to enter and display the names of students in a class using the occurs clause.
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
what happens if parmparameter passes zero bytes to the program
How do define dynamic array in cobol.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
How many sections are there in data division in COBOL?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
What is the difference between Call and a Link?