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


Please Help Members By Posting Answers For Below Questions

i want a program using by if, evaluate , string, unstring, perform, occurs?

4065


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8168


Can we change the password using ALTER? anyone tried and changed?

1549


In COBOL, what is the different between index and subscript?

763


What is cobol?

749






) How do u handle errors in BMS macro

1512


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


What is redefines clause in COBOL?

851


how do you reference the ksds vsam file formats from cobol programs

666


What is the difference between a binary search and a sequential search what are the pertinent cobol?

737


How many bytes S(8) comp field occupy and its maximum value?

1634


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960


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 ......

10633


What are the cobol coding sheets?

666


how do you reference the printer file formats from cobol programs

668