COBOL Table Handling

     1.     Why occurs can not be used in 01 level?
Occurs clause is there to repeat fields with same format, not the records.
     2.     What is the maximum number of dimensions that an array can have in COBOL?.
SEVEN in COBOL - 85 and THREE in COBOL - 84
     3.     How do you define a table/array in COBOL?
05 ARRAY1    pic X(9) OCCURS 10 TIMES.
05           ARRAY2               PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX


Computers TopOfBlogs Technology Blogs Mainframe interview question and answers,mainframe jobs,cobol,vsam,jcl,cics,db2,rdbms,mvs,tso,ispf,ibm,hcl,tcs,cts,wibro Blog Directory