In article <vm6b3h$3dcll$
1@paganini.bofh.team>,
R Daneel Olivaw <
Danny@hyperspace.vogon.gov> wrote:
Bruce M. Axtens wrote:
On Mon, 13 Jan 2025 10:29:21 +0100, R Daneel Olivaw wrote:
WHEN OTHER ??
You could probably put the test for SPACE in there, something which
would remove any chance of a test on WS-CHAR (61).
Yes, good advice. Thank you.
Just paranoia, 60 letters for one word is ridiculous, but I have no idea >where the data comes from.
Bingo. Data are dirty unless proven otherwise. What you're using SPECIAL-NAMES for we used to do with 88s that ran on for pages.
01 WS-TEST-INVOICE-DISTRICT PIC 9(6) VALUE ZEROES.
COPY VALDSTRC.
MOVE IV97928-INVOICE-REC TO WS-INVOICE-REC.
MOVE WS-INVOICE-REC-DISTRICT TO WS-TEST-INVOICE-DISTRICT.
IF VALID-DISTRICT
NEXT SENTENCE
ELSE
PERFORM 8100-INVALID-INV-DSTRCT THRU 8100-IVD-EX
GO TO 9999-CLOSE-N-EXIT.
.... and The Guy in the Corner Cubicle - back in those days it was always a guy - had a list in the top-right drawer of his desk with the names of all
the programs that had to be recompiled every time a new district was
acquired.
DD
--- MBSE BBS v1.1.0 (Linux-x86_64)
* Origin: Public Access Networks Corp. (2:250/1@fidonet)