Search found 20 matches

by chaat
Sun Dec 30, 2012 8:21 am
Forum: COBOL
Topic: using Index other than subscript
Replies: 12
Views: 17154

Venkatreddy,

I believe that the SEARCH ALL verb requires the use of an INDEX on the array to be searched.

Also indexes are MUCH more efficient than subscripts in all but some very limited situations dealing with arrays with only single byte entries.

Chuck H.
by chaat
Sun Dec 30, 2012 8:13 am
Forum: COBOL
Topic: OCCURS DEPENDING ON
Replies: 10
Views: 13450

Jeroc, one of the primary advantages of using the ODO clause on an array in working storage is that it does NOT have to be initialized. hint ---> to initialize the array move ZERO to the ODO variable. from a resource usage perspective this is much more efficient, especially when initializing the arr...
by chaat
Sun Dec 30, 2012 8:09 am
Forum: COBOL
Topic: Recommendation regarding INSPECT
Replies: 8
Views: 9176

jeroc, follow this link to the IBM Enterprise COBOL Version 4 Release 2 Performance Tuning manual. Then do a search on INSPECT. http://www-01.ibm.com/support/docview.wss?uid=swg27018287 I find that for character translations using INSPECT XXXX CONVERTING literal-1 TO literal-2 is more efficient in t...
by chaat
Tue Jun 01, 2010 9:05 am
Forum: FILE-AID
Topic: How to read a file using FILE-AID
Replies: 2
Views: 7924

The way that I do that for a sequential file is to use the DROP function. It is similar to the COPY function in that it copies the input file to the output file. However it "drops" the records which meet any of the if conditions in the $$DDnn statement.
by chaat
Sun Apr 18, 2010 11:55 pm
Forum: COBOL
Topic: COBOL Program performance tuning tips
Replies: 22
Views: 76931

I had a situation where we loaded a large VSAM file into memory to be searched by online CICS application. We encountered problems trying to emulate the VSAM START verb using COBOL SEARCH ALL verb when the key does not exist in the array. To get around this we had to write our own BINARY SEARCH in C...