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
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Write a program to enter and display the names of students in a class using the occurs clause.
What is cobol?
Explain how you can characterize tables in cobol?
Name the divisions, which are available in a cobol program?
how to move the records from file to array table. give with code example
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?
What guidelines should be followed to write a structured cobol prgm?
What are literals?
What is difference between static and dynamic call in cobol?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the difference between binary search and sequential search?
What is an in line perform? When would you use it? Anything else you wish to say about it.