1)what is the maximum limit for occurs?
Eg: 01 A PIC X(10) OCCURS N TIME.
What is the max value for N?
Answer Posted / ravi patnam
Maximum value for the N is 99999999. For example see below:
$set ans85 comp
IDENTIFICATION DIVISION.
PROGRAM-ID. "test".
AUTHOR. RAVI PATNAM.
DATE-WRITTEN. 20-02-2009.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
WORKING-STORAGE SECTION.
01 N pic 9(9) value 0.
01 test-occurs occurs 0 to 99999999
depending on N.
02 test-no pic 9(2).
PROCEDURE DIVISION.
MAIN.
move 99999999 to N.
move 11 to test-no(N).
display test-no(N).
stop run.
| Is This Answer Correct ? | 5 Yes | 9 No |
Post New Answer View All Answers
how do you define single dimensional array and multidimensional array in your cobol?
What are various search techniques in cobol? Explain.
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
IF I mention stop run in CICS what happens?
How do we get current date from system with century in COBOL?
how can i see junk values in dclgen or in hostvariable of comp ?
What is cobol?
how do you reference the variable unblock file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
A table has two indexes defined. Which one will be used by the SEARCH?
how do you reference the fixed unblock file formats from cobol programs
i need a small 3d program using inline and outline.
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is report-item in COBOL?
How do you differentiate between cobol and cobol-ii?