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
IF I mention stop run in CICS what happens?
What is length is cobol?
Write a program to explain size error.
) what is the difference between AID and HANDLE AID?
How do we get current date from system with century in COBOL?
What the difference is between continue and next sentence?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Discuss about changing dataset name in proc.
how do you reference the variable unblock file formats from cobol programs
How you can read the file from bottom?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What are the different rules to perform a Search?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the difference between comp and comp-3?