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 / rohit
c) PIC can't be specified for a group item.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Which Search verb is equivalent to PERFORM…VARYING?
How to know whether the module is dynamical or statistical?
What are declaratives and what are their uses in cobol?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the difference between PIC 9.99 and 9v99 in COBOL?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Difference between cobol and cobol-ii?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
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 ......
Why did you choose to work with ibm mainframe cobol programming?
Why occurs cannot be used in 01 level in COBOL?
how to move the records from file to array table. give with code example
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks