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
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is a scope terminator give example?
how do you reference the esds vsam file formats from cobol programs
i want a program using by if, evaluate , string, unstring, perform, occurs?
Can you please let me know the centre name of INS certification in Kolkata.
What is redefines clause in COBOL?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is the usage of comp fields in cobol?
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?
Explain the configuration section of a cobol program with examples of syntax.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
) How do u handle errors in BMS macro?
What are the pertinent COBOL
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...)