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
In which area will you utilize 88 level items in cobol?
What is the utilization of copybook in cobol?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
Explain the configuration section of a cobol program with examples of syntax.
how to access the file from prodution from changeman tool and to submit a file to production
What are the different rules of SORT operation?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What are different data types in cobol?
what is difference between cobol and cobol/400
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is the difference between PIC 9.99 and 9v99 in COBOL?
What are the rules of the move verb?
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...)
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad