I have a occurs for 100 times but it has executed 101 time
what could be the reason?
Answer Posted / niki
Change Compiler ioption NO SSrange to ssrange. But the
Default is NO SSRANGE.
IF U Use Compiler option SSrange, then whenever the
subscript exceeds its declared
number it will give a Eroor.
for example :
A variable is declared like this...
01 field1.
02 field2 pic x(10) occurs 10 times.
Oputput will be
then field2(1) ......field2(10) is allowed when it exceeds
it will give error
ex: field2(11) ----- erro msg will be displayed
| Is This Answer Correct ? | 14 Yes | 0 No |
Post New Answer View All Answers
Are you comfortable in cobol or jcl?
What the difference is between continue and next sentence?
What is the difference between Call and a Link?
What are the different open modes available in cobol?
How arrays can be defined in COBOL?
What is rmode(any) ?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the difference between comp and comp-3 usage?
What is the difference between next sentence and continue in cobol programing language?
In which area will you utilize 88 level items in cobol?
What is the difference between perform … with test after and perform … with test before?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks