If i initialize the 01 level variable in array, will it
initialize all the array elements (occurs)?
Answer Posted / snehatechm
occurs clause of an array cant be coded in 01 level.
it should always be coded in work area 2
01 xxx-yyy.
03 XX-YYY-ARRAY OCCURS 10 TIMES.
05 XX-YYY-MEM1 COMP-3 PIC S9(9).
05 XX-YYY-MEM2 COMP-3 PIC S9(9)V9.
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are the different data types 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 ......
Define static linking and dynamic linking.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
How do you get the data to code the BMS macro?
What are the pertinent COBOL commands?
In COBOL, what is the different between index and subscript?
Write a program to enter and display the names of students in a class using the occurs clause.
What are declaratives and what are their uses in cobol?
What is the difference between external and global variables in COBOL?
what are decleratives in cobol?
how do you reference the ksds vsam file formats from cobol programs
What is the difference between PIC 9.99 and 9v99 in COBOL?
Write down the divisions of cobol program?