Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: docdwarf@xxxxxxxxx ()
- Date: Thu, 20 Sep 2007 00:27:00 +0000 (UTC)
In article <X9-dnYZshvgMLGzbnZ2dnUVZ_remnZ2d@xxxxxxxxxx>,
donald tees <donaldtees@xxxxxxxxxxxxx> wrote:
Howard Brazee wrote:
[snip]
I have a program that looks to see what campus is running that
program. If it is one of the big campuses, it does an area sweep, if
it's one of the small campuses, it walks the set. This was
determined by testing the speeds of the two choices.
Closer to what I mean. Two completely different methodologies,
depending on requirements.
This is one of the reasons I've coded
READ INFILE
AT END SET NO-MORE-INPUT TO TRUE
NOT AT END
ADD 1 TO LOOKUP-TBL-ENTRY-NO
IF LOOKUP-TBL-ENTRY-NO > MAX-TBL-ENTRIES-ALLOWED
MOVE 'LOOKUP TABLE EXCEEDS MAX ENTRIES - CALL PROGAMMING'
TO WS-ABEND-REASON
GO TO ABEND-RTN
ELSE
MOVE INREC TO LOOKUP-TBL-ENTRY (LOOKUP-TBL-ENTRY-NO)
END-IF
END-READ
.... or reasonable facsimiles thereof. When data volume goes a certain
amount beyond program design then it's time to have a coder look at it...
if only to say 'Oh, we're not limited to 32K tables any more, let's bump
this baby up a few!'.
DD
.
- Follow-Ups:
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: donald tees
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- References:
- COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: William M. Klein
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: donald tees
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: Howard Brazee
- Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- From: donald tees
- COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- Prev by Date: Re: [OT] Iraq
- Next by Date: Re: [OT] Iraq
- Previous by thread: Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- Next by thread: Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
- Index(es):