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
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
In COBOL, what is the different between index and subscript?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What are the different data types in cobol?
Name the sections present in data division.
Define static linking and dynamic linking.
What is perform what is varying?
IF I mention stop run in CICS what happens?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Write some characteristics of cobol as means of business language.
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between Call and a Link?
What is difference between static and dynamic call in cobol?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?