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
Which mode is used to operate the sequential file?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
what is the use of outrecord?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Write the code implementing the perform … varying.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What is Pic 9v99 Indicates in COBOL?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Name some of the examples of COBOl 11?
Which Search verb is equivalent to PERFORM…VARYING?
i want a program using by if, evaluate , string, unstring, perform, occurs?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) How do u handle errors in BMS macro