Home » Archimedes archive » Archimedes World » AW-1991-11.adf » November91 » !AWNov91/Goodies/Exchange/!Exchange/SourceCode/TestData

!AWNov91/Goodies/Exchange/!Exchange/SourceCode/TestData

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Archimedes World » AW-1991-11.adf » November91
Filename: !AWNov91/Goodies/Exchange/!Exchange/SourceCode/TestData
Read OK:
File size: 0BD7 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM >TestData
   20REM
   30REM LEN M.S.Bright April 1991
   40REM
   50REM Version 0.63 22/04/91
   60REM
   70REM Reads in a Telephone file and tests the format, reporting deviations from the required standard.
   80REM
   90REM Only Valid characters are a-z 0-9 & . ,Space CHR$(0) and CHR$(1)
  100REM Format is ssss[00]eeeeeee[01]cccccc
  110REM Where ssss is the STD code in "021 550" ,"0384 89" ,"0384 7 " or "0384" format
  120REM eeeeeee is the Exchange name
  130REM ccccccc is the Town/County
  140REM Maximum Length of total string is 56 characters, all text in lowercase ONLY
  150REM Separator between code and exchange is [00] (<SHIFT><CTRL><2>)
  160REM Separator between exchange and town/county is [01] (<CTRL><A>)
  170REM      This code should be present in ALL strings, otherwise is fouls up the formating of the STD code.
  180REM If the number is not 6 figure, then add  - (x) - where x is the number of digits in the local code.
  190:
  200InFile$="<Exchange$Dir>.Resources.Telephone"
  210ErrorFile$="<Exchange$Dir>.Resources.ErrorFile"
  220I%=OPENIN InFile$
  230:
  240ON ERROR PRINTREPORT$;" at line :";ERL : GOTO 660
  250PRINT "Please wait. This will take about 5 mins!"
  260:
  270OSCLI"SPOOL "+ErrorFile$
  280:
  290LineCount%=1 : ErrorCount%=0
  300REPEAT
  310WrongSTDFormat%=FALSE:ExchangeSeperate%=FALSE:STDSeperate%=FALSE:NoSTD%=FALSE
  320MultipleOnes%=FALSE:TooLong%=FALSE:BadCode%=FALSE:Caps%=FALSE
  330   Temp$=GET$#I%
  340   IF INSTR(Temp$,CHR$0) THEN STDSeperate%=TRUE
  350   IF STDSeperate% THEN
  360      Position%=INSTR(Temp$,CHR$0)
  370      IF Position%=8 OR Position%=5 THEN WrongSTDFormat%=FALSE ELSE WrongSTDFormat%=TRUE
  380   ENDIF
  390   IF INSTR(Temp$,CHR$1) THEN
  400      ExchangeSeperate%=TRUE
  410      IF INSTR(MID$(Temp$,INSTR(Temp$,CHR$1)+1),CHR$(1)) THEN
  420         MultipleOnes%=TRUE
  430      ENDIF
  440   ENDIF
  450   IF VAL(MID$(Temp$,0,3))=0 THEN NoSTD%=TRUE
  460   IF LEN(Temp$)>56 THEN TooLong%=TRUE
  470   FOR Loop%=0 TO LEN(Temp$)
  480      Char$=MID$(Temp$,Loop%,1)
  490      IF Char$<" " THEN BadCode%=TRUE
  500      IF Char$>"A" AND Char$<"Z" THEN Caps%=TRUE
  510      IF Char$>"z" THEN BadCode%=TRUE
  520      IF Char$="&" OR Char$="." OR Char$="," OR Char$=" " THEN BadCode%=FALSE
  530      IF ASC(Char$)=0 OR ASC(Char$)=1 THEN BadCode%=FALSE
  540   NEXT
  550   IF BadCode% THEN PRINT"Illegal character in string at line ";STR$(LineCount%)'Temp$
  560   IF Caps% THEN PRINT"No upper case characters allowed at line ";STR$(LineCount%)'Temp$
  570   IF TooLong% THEN PRINT"String too long at line ";STR$(LineCount%);" by ";STR$(LEN(Temp$)-40);" characters."'Temp$
  580   IF NoSTD% THEN PRINT"String must start with a number at line ";STR$(LineCount%)'Temp$
  590   IF NOT STDSeperate% THEN PRINT"No [00], should be between STD code and Exchange name at line ";STR$(LineCount%)'Temp$
  600   IF NOT ExchangeSeperate% THEN PRINT"No [01], should be after Exchange name at line ";STR$(LineCount%)'Temp$
  610   IF WrongSTDFormat% THEN PRINT"STD code is incorrectly formatted -";STR$(Position%);"- at line ";STR$(LineCount%)'Temp$
  620   IF MultipleOnes% THEN PRINT"There are too many [01]'s in data at line ";STR$(LineCount%)'Temp$
  630   IF BadCode% OR Caps% OR TooLong% OR NoSTD% OR WrongSTDFormat% OR MultipleOnes% OR (NOT STDSeperate%) OR (NOT ExchangeSeperate%) THEN ErrorCount%+=1
  640   LineCount%+=1
  650UNTIL EOF#I%
  660CLOSE#I%
  670:
  680PRINT STR$(LineCount%);" lines tested.   ";STR$(ErrorCount%);" Errors."
  690:
  700*SPOOL
  710OSCLI"SetType "+ErrorFile$+" TEXT"
  720END

� >TestData
�
� � M.S.Bright April 1991
(�
2� Version 0.63 22/04/91
<�
Ff� Reads in a Telephone file and tests the format, reporting deviations from the required standard.
P�
ZF� Only Valid characters are a-z 0-9 & . ,Space CHR$(0) and CHR$(1)
d)� Format is ssss[00]eeeeeee[01]cccccc
nT� Where ssss is the STD code in "021 550" ,"0384 89" ,"0384 7 " or "0384" format
x"� eeeeeee is the Exchange name
� � ccccccc is the Town/County
�Q� Maximum Length of total string is 56 characters, all text in lowercase ONLY
�D� Separator between code and exchange is [00] (<SHIFT><CTRL><2>)
�D� Separator between exchange and town/county is [01] (<CTRL><A>)
�k�      This code should be present in ALL strings, otherwise is fouls up the formating of the STD code.
�i� If the number is not 6 figure, then add  - (x) - where x is the number of digits in the local code.
�:
�0InFile$="<Exchange$Dir>.Resources.Telephone"
�3ErrorFile$="<Exchange$Dir>.Resources.ErrorFile"
�I%=� InFile$
�:
�#� � �$;" at line :";� : � �tTB
�1� "Please wait. This will take about 5 mins!"
:
�"SPOOL "+ErrorFile$
:
" LineCount%=1 : ErrorCount%=0
,�
6AWrongSTDFormat%=�:ExchangeSeperate%=�:STDSeperate%=�:NoSTD%=�
@1MultipleOnes%=�:TooLong%=�:BadCode%=�:Caps%=�
J   Temp$=�#I%
T$   � �Temp$,�0) � STDSeperate%=�
^   � STDSeperate% �
h      Position%=�Temp$,�0)
rM      � Position%=8 � Position%=5 � WrongSTDFormat%=� � WrongSTDFormat%=�
|   �
�   � �Temp$,�1) �
�      ExchangeSeperate%=�
�)      � ��Temp$,�Temp$,�1)+1),�(1)) �
�         MultipleOnes%=�
�      �
�   �
�$   � �(�Temp$,0,3))=0 � NoSTD%=�
�!   � �(Temp$)>56 � TooLong%=�
�   � Loop%=0 � �(Temp$)
�      Char$=�Temp$,Loop%,1)
�"      � Char$<" " � BadCode%=�
�+      � Char$>"A" � Char$<"Z" � Caps%=�
�"      � Char$>"z" � BadCode%=�
F      � Char$="&" � Char$="." � Char$="," � Char$=" " � BadCode%=�
0      � �(Char$)=0 � �(Char$)=1 � BadCode%=�
   �
&O   � BadCode% � �"Illegal character in string at line ";�(LineCount%)'Temp$
0Q   � Caps% � �"No upper case characters allowed at line ";�(LineCount%)'Temp$
:h   � TooLong% � �"String too long at line ";�(LineCount%);" by ";�(�(Temp$)-40);" characters."'Temp$
DQ   � NoSTD% � �"String must start with a number at line ";�(LineCount%)'Temp$
No   � � STDSeperate% � �"No [00], should be between STD code and Exchange name at line ";�(LineCount%)'Temp$
Xe   � � ExchangeSeperate% � �"No [01], should be after Exchange name at line ";�(LineCount%)'Temp$
bo   � WrongSTDFormat% � �"STD code is incorrectly formatted -";�(Position%);"- at line ";�(LineCount%)'Temp$
lZ   � MultipleOnes% � �"There are too many [01]'s in data at line ";�(LineCount%)'Temp$
v�   � BadCode% � Caps% � TooLong% � NoSTD% � WrongSTDFormat% � MultipleOnes% � (� STDSeperate%) � (� ExchangeSeperate%) � ErrorCount%+=1
�   LineCount%+=1
�
� �#I%
��#I%
�:
�A� �(LineCount%);" lines tested.   ";�(ErrorCount%);" Errors."
�:
�
*SPOOL
�"�"SetType "+ErrorFile$+" TEXT"
��
�
00000000  0d 00 0a 0f f4 20 3e 54  65 73 74 44 61 74 61 0d  |..... >TestData.|
00000010  00 14 05 f4 0d 00 1e 1d  f4 20 a9 20 4d 2e 53 2e  |......... . M.S.|
00000020  42 72 69 67 68 74 20 41  70 72 69 6c 20 31 39 39  |Bright April 199|
00000030  31 0d 00 28 05 f4 0d 00  32 1b f4 20 56 65 72 73  |1..(....2.. Vers|
00000040  69 6f 6e 20 30 2e 36 33  20 32 32 2f 30 34 2f 39  |ion 0.63 22/04/9|
00000050  31 0d 00 3c 05 f4 0d 00  46 66 f4 20 52 65 61 64  |1..<....Ff. Read|
00000060  73 20 69 6e 20 61 20 54  65 6c 65 70 68 6f 6e 65  |s in a Telephone|
00000070  20 66 69 6c 65 20 61 6e  64 20 74 65 73 74 73 20  | file and tests |
00000080  74 68 65 20 66 6f 72 6d  61 74 2c 20 72 65 70 6f  |the format, repo|
00000090  72 74 69 6e 67 20 64 65  76 69 61 74 69 6f 6e 73  |rting deviations|
000000a0  20 66 72 6f 6d 20 74 68  65 20 72 65 71 75 69 72  | from the requir|
000000b0  65 64 20 73 74 61 6e 64  61 72 64 2e 0d 00 50 05  |ed standard...P.|
000000c0  f4 0d 00 5a 46 f4 20 4f  6e 6c 79 20 56 61 6c 69  |...ZF. Only Vali|
000000d0  64 20 63 68 61 72 61 63  74 65 72 73 20 61 72 65  |d characters are|
000000e0  20 61 2d 7a 20 30 2d 39  20 26 20 2e 20 2c 53 70  | a-z 0-9 & . ,Sp|
000000f0  61 63 65 20 43 48 52 24  28 30 29 20 61 6e 64 20  |ace CHR$(0) and |
00000100  43 48 52 24 28 31 29 0d  00 64 29 f4 20 46 6f 72  |CHR$(1)..d). For|
00000110  6d 61 74 20 69 73 20 73  73 73 73 5b 30 30 5d 65  |mat is ssss[00]e|
00000120  65 65 65 65 65 65 5b 30  31 5d 63 63 63 63 63 63  |eeeeee[01]cccccc|
00000130  0d 00 6e 54 f4 20 57 68  65 72 65 20 73 73 73 73  |..nT. Where ssss|
00000140  20 69 73 20 74 68 65 20  53 54 44 20 63 6f 64 65  | is the STD code|
00000150  20 69 6e 20 22 30 32 31  20 35 35 30 22 20 2c 22  | in "021 550" ,"|
00000160  30 33 38 34 20 38 39 22  20 2c 22 30 33 38 34 20  |0384 89" ,"0384 |
00000170  37 20 22 20 6f 72 20 22  30 33 38 34 22 20 66 6f  |7 " or "0384" fo|
00000180  72 6d 61 74 0d 00 78 22  f4 20 65 65 65 65 65 65  |rmat..x". eeeeee|
00000190  65 20 69 73 20 74 68 65  20 45 78 63 68 61 6e 67  |e is the Exchang|
000001a0  65 20 6e 61 6d 65 0d 00  82 20 f4 20 63 63 63 63  |e name... . cccc|
000001b0  63 63 63 20 69 73 20 74  68 65 20 54 6f 77 6e 2f  |ccc is the Town/|
000001c0  43 6f 75 6e 74 79 0d 00  8c 51 f4 20 4d 61 78 69  |County...Q. Maxi|
000001d0  6d 75 6d 20 4c 65 6e 67  74 68 20 6f 66 20 74 6f  |mum Length of to|
000001e0  74 61 6c 20 73 74 72 69  6e 67 20 69 73 20 35 36  |tal string is 56|
000001f0  20 63 68 61 72 61 63 74  65 72 73 2c 20 61 6c 6c  | characters, all|
00000200  20 74 65 78 74 20 69 6e  20 6c 6f 77 65 72 63 61  | text in lowerca|
00000210  73 65 20 4f 4e 4c 59 0d  00 96 44 f4 20 53 65 70  |se ONLY...D. Sep|
00000220  61 72 61 74 6f 72 20 62  65 74 77 65 65 6e 20 63  |arator between c|
00000230  6f 64 65 20 61 6e 64 20  65 78 63 68 61 6e 67 65  |ode and exchange|
00000240  20 69 73 20 5b 30 30 5d  20 28 3c 53 48 49 46 54  | is [00] (<SHIFT|
00000250  3e 3c 43 54 52 4c 3e 3c  32 3e 29 0d 00 a0 44 f4  |><CTRL><2>)...D.|
00000260  20 53 65 70 61 72 61 74  6f 72 20 62 65 74 77 65  | Separator betwe|
00000270  65 6e 20 65 78 63 68 61  6e 67 65 20 61 6e 64 20  |en exchange and |
00000280  74 6f 77 6e 2f 63 6f 75  6e 74 79 20 69 73 20 5b  |town/county is [|
00000290  30 31 5d 20 28 3c 43 54  52 4c 3e 3c 41 3e 29 0d  |01] (<CTRL><A>).|
000002a0  00 aa 6b f4 20 20 20 20  20 20 54 68 69 73 20 63  |..k.      This c|
000002b0  6f 64 65 20 73 68 6f 75  6c 64 20 62 65 20 70 72  |ode should be pr|
000002c0  65 73 65 6e 74 20 69 6e  20 41 4c 4c 20 73 74 72  |esent in ALL str|
000002d0  69 6e 67 73 2c 20 6f 74  68 65 72 77 69 73 65 20  |ings, otherwise |
000002e0  69 73 20 66 6f 75 6c 73  20 75 70 20 74 68 65 20  |is fouls up the |
000002f0  66 6f 72 6d 61 74 69 6e  67 20 6f 66 20 74 68 65  |formating of the|
00000300  20 53 54 44 20 63 6f 64  65 2e 0d 00 b4 69 f4 20  | STD code....i. |
00000310  49 66 20 74 68 65 20 6e  75 6d 62 65 72 20 69 73  |If the number is|
00000320  20 6e 6f 74 20 36 20 66  69 67 75 72 65 2c 20 74  | not 6 figure, t|
00000330  68 65 6e 20 61 64 64 20  20 2d 20 28 78 29 20 2d  |hen add  - (x) -|
00000340  20 77 68 65 72 65 20 78  20 69 73 20 74 68 65 20  | where x is the |
00000350  6e 75 6d 62 65 72 20 6f  66 20 64 69 67 69 74 73  |number of digits|
00000360  20 69 6e 20 74 68 65 20  6c 6f 63 61 6c 20 63 6f  | in the local co|
00000370  64 65 2e 0d 00 be 05 3a  0d 00 c8 30 49 6e 46 69  |de.....:...0InFi|
00000380  6c 65 24 3d 22 3c 45 78  63 68 61 6e 67 65 24 44  |le$="<Exchange$D|
00000390  69 72 3e 2e 52 65 73 6f  75 72 63 65 73 2e 54 65  |ir>.Resources.Te|
000003a0  6c 65 70 68 6f 6e 65 22  0d 00 d2 33 45 72 72 6f  |lephone"...3Erro|
000003b0  72 46 69 6c 65 24 3d 22  3c 45 78 63 68 61 6e 67  |rFile$="<Exchang|
000003c0  65 24 44 69 72 3e 2e 52  65 73 6f 75 72 63 65 73  |e$Dir>.Resources|
000003d0  2e 45 72 72 6f 72 46 69  6c 65 22 0d 00 dc 10 49  |.ErrorFile"....I|
000003e0  25 3d 8e 20 49 6e 46 69  6c 65 24 0d 00 e6 05 3a  |%=. InFile$....:|
000003f0  0d 00 f0 23 ee 20 85 20  f1 f6 24 3b 22 20 61 74  |...#. . ..$;" at|
00000400  20 6c 69 6e 65 20 3a 22  3b 9e 20 3a 20 e5 20 8d  | line :";. : . .|
00000410  74 54 42 0d 00 fa 31 f1  20 22 50 6c 65 61 73 65  |tTB...1. "Please|
00000420  20 77 61 69 74 2e 20 54  68 69 73 20 77 69 6c 6c  | wait. This will|
00000430  20 74 61 6b 65 20 61 62  6f 75 74 20 35 20 6d 69  | take about 5 mi|
00000440  6e 73 21 22 0d 01 04 05  3a 0d 01 0e 18 ff 22 53  |ns!"....:....."S|
00000450  50 4f 4f 4c 20 22 2b 45  72 72 6f 72 46 69 6c 65  |POOL "+ErrorFile|
00000460  24 0d 01 18 05 3a 0d 01  22 20 4c 69 6e 65 43 6f  |$....:.." LineCo|
00000470  75 6e 74 25 3d 31 20 3a  20 45 72 72 6f 72 43 6f  |unt%=1 : ErrorCo|
00000480  75 6e 74 25 3d 30 0d 01  2c 05 f5 0d 01 36 41 57  |unt%=0..,....6AW|
00000490  72 6f 6e 67 53 54 44 46  6f 72 6d 61 74 25 3d a3  |rongSTDFormat%=.|
000004a0  3a 45 78 63 68 61 6e 67  65 53 65 70 65 72 61 74  |:ExchangeSeperat|
000004b0  65 25 3d a3 3a 53 54 44  53 65 70 65 72 61 74 65  |e%=.:STDSeperate|
000004c0  25 3d a3 3a 4e 6f 53 54  44 25 3d a3 0d 01 40 31  |%=.:NoSTD%=...@1|
000004d0  4d 75 6c 74 69 70 6c 65  4f 6e 65 73 25 3d a3 3a  |MultipleOnes%=.:|
000004e0  54 6f 6f 4c 6f 6e 67 25  3d a3 3a 42 61 64 43 6f  |TooLong%=.:BadCo|
000004f0  64 65 25 3d a3 3a 43 61  70 73 25 3d a3 0d 01 4a  |de%=.:Caps%=...J|
00000500  11 20 20 20 54 65 6d 70  24 3d be 23 49 25 0d 01  |.   Temp$=.#I%..|
00000510  54 24 20 20 20 e7 20 a7  54 65 6d 70 24 2c bd 30  |T$   . .Temp$,.0|
00000520  29 20 8c 20 53 54 44 53  65 70 65 72 61 74 65 25  |) . STDSeperate%|
00000530  3d b9 0d 01 5e 17 20 20  20 e7 20 53 54 44 53 65  |=...^.   . STDSe|
00000540  70 65 72 61 74 65 25 20  8c 0d 01 68 1e 20 20 20  |perate% ...h.   |
00000550  20 20 20 50 6f 73 69 74  69 6f 6e 25 3d a7 54 65  |   Position%=.Te|
00000560  6d 70 24 2c bd 30 29 0d  01 72 4d 20 20 20 20 20  |mp$,.0)..rM     |
00000570  20 e7 20 50 6f 73 69 74  69 6f 6e 25 3d 38 20 84  | . Position%=8 .|
00000580  20 50 6f 73 69 74 69 6f  6e 25 3d 35 20 8c 20 57  | Position%=5 . W|
00000590  72 6f 6e 67 53 54 44 46  6f 72 6d 61 74 25 3d a3  |rongSTDFormat%=.|
000005a0  20 8b 20 57 72 6f 6e 67  53 54 44 46 6f 72 6d 61  | . WrongSTDForma|
000005b0  74 25 3d b9 0d 01 7c 08  20 20 20 cd 0d 01 86 15  |t%=...|.   .....|
000005c0  20 20 20 e7 20 a7 54 65  6d 70 24 2c bd 31 29 20  |   . .Temp$,.1) |
000005d0  8c 0d 01 90 1d 20 20 20  20 20 20 45 78 63 68 61  |.....      Excha|
000005e0  6e 67 65 53 65 70 65 72  61 74 65 25 3d b9 0d 01  |ngeSeperate%=...|
000005f0  9a 29 20 20 20 20 20 20  e7 20 a7 c1 54 65 6d 70  |.)      . ..Temp|
00000600  24 2c a7 54 65 6d 70 24  2c bd 31 29 2b 31 29 2c  |$,.Temp$,.1)+1),|
00000610  bd 28 31 29 29 20 8c 0d  01 a4 1c 20 20 20 20 20  |.(1)) .....     |
00000620  20 20 20 20 4d 75 6c 74  69 70 6c 65 4f 6e 65 73  |    MultipleOnes|
00000630  25 3d b9 0d 01 ae 0b 20  20 20 20 20 20 cd 0d 01  |%=.....      ...|
00000640  b8 08 20 20 20 cd 0d 01  c2 24 20 20 20 e7 20 bb  |..   ....$   . .|
00000650  28 c1 54 65 6d 70 24 2c  30 2c 33 29 29 3d 30 20  |(.Temp$,0,3))=0 |
00000660  8c 20 4e 6f 53 54 44 25  3d b9 0d 01 cc 21 20 20  |. NoSTD%=....!  |
00000670  20 e7 20 a9 28 54 65 6d  70 24 29 3e 35 36 20 8c  | . .(Temp$)>56 .|
00000680  20 54 6f 6f 4c 6f 6e 67  25 3d b9 0d 01 d6 1b 20  | TooLong%=..... |
00000690  20 20 e3 20 4c 6f 6f 70  25 3d 30 20 b8 20 a9 28  |  . Loop%=0 . .(|
000006a0  54 65 6d 70 24 29 0d 01  e0 1f 20 20 20 20 20 20  |Temp$)....      |
000006b0  43 68 61 72 24 3d c1 54  65 6d 70 24 2c 4c 6f 6f  |Char$=.Temp$,Loo|
000006c0  70 25 2c 31 29 0d 01 ea  22 20 20 20 20 20 20 e7  |p%,1)..."      .|
000006d0  20 43 68 61 72 24 3c 22  20 22 20 8c 20 42 61 64  | Char$<" " . Bad|
000006e0  43 6f 64 65 25 3d b9 0d  01 f4 2b 20 20 20 20 20  |Code%=....+     |
000006f0  20 e7 20 43 68 61 72 24  3e 22 41 22 20 80 20 43  | . Char$>"A" . C|
00000700  68 61 72 24 3c 22 5a 22  20 8c 20 43 61 70 73 25  |har$<"Z" . Caps%|
00000710  3d b9 0d 01 fe 22 20 20  20 20 20 20 e7 20 43 68  |=...."      . Ch|
00000720  61 72 24 3e 22 7a 22 20  8c 20 42 61 64 43 6f 64  |ar$>"z" . BadCod|
00000730  65 25 3d b9 0d 02 08 46  20 20 20 20 20 20 e7 20  |e%=....F      . |
00000740  43 68 61 72 24 3d 22 26  22 20 84 20 43 68 61 72  |Char$="&" . Char|
00000750  24 3d 22 2e 22 20 84 20  43 68 61 72 24 3d 22 2c  |$="." . Char$=",|
00000760  22 20 84 20 43 68 61 72  24 3d 22 20 22 20 8c 20  |" . Char$=" " . |
00000770  42 61 64 43 6f 64 65 25  3d a3 0d 02 12 30 20 20  |BadCode%=....0  |
00000780  20 20 20 20 e7 20 97 28  43 68 61 72 24 29 3d 30  |    . .(Char$)=0|
00000790  20 84 20 97 28 43 68 61  72 24 29 3d 31 20 8c 20  | . .(Char$)=1 . |
000007a0  42 61 64 43 6f 64 65 25  3d a3 0d 02 1c 08 20 20  |BadCode%=.....  |
000007b0  20 ed 0d 02 26 4f 20 20  20 e7 20 42 61 64 43 6f  | ...&O   . BadCo|
000007c0  64 65 25 20 8c 20 f1 22  49 6c 6c 65 67 61 6c 20  |de% . ."Illegal |
000007d0  63 68 61 72 61 63 74 65  72 20 69 6e 20 73 74 72  |character in str|
000007e0  69 6e 67 20 61 74 20 6c  69 6e 65 20 22 3b c3 28  |ing at line ";.(|
000007f0  4c 69 6e 65 43 6f 75 6e  74 25 29 27 54 65 6d 70  |LineCount%)'Temp|
00000800  24 0d 02 30 51 20 20 20  e7 20 43 61 70 73 25 20  |$..0Q   . Caps% |
00000810  8c 20 f1 22 4e 6f 20 75  70 70 65 72 20 63 61 73  |. ."No upper cas|
00000820  65 20 63 68 61 72 61 63  74 65 72 73 20 61 6c 6c  |e characters all|
00000830  6f 77 65 64 20 61 74 20  6c 69 6e 65 20 22 3b c3  |owed at line ";.|
00000840  28 4c 69 6e 65 43 6f 75  6e 74 25 29 27 54 65 6d  |(LineCount%)'Tem|
00000850  70 24 0d 02 3a 68 20 20  20 e7 20 54 6f 6f 4c 6f  |p$..:h   . TooLo|
00000860  6e 67 25 20 8c 20 f1 22  53 74 72 69 6e 67 20 74  |ng% . ."String t|
00000870  6f 6f 20 6c 6f 6e 67 20  61 74 20 6c 69 6e 65 20  |oo long at line |
00000880  22 3b c3 28 4c 69 6e 65  43 6f 75 6e 74 25 29 3b  |";.(LineCount%);|
00000890  22 20 62 79 20 22 3b c3  28 a9 28 54 65 6d 70 24  |" by ";.(.(Temp$|
000008a0  29 2d 34 30 29 3b 22 20  63 68 61 72 61 63 74 65  |)-40);" characte|
000008b0  72 73 2e 22 27 54 65 6d  70 24 0d 02 44 51 20 20  |rs."'Temp$..DQ  |
000008c0  20 e7 20 4e 6f 53 54 44  25 20 8c 20 f1 22 53 74  | . NoSTD% . ."St|
000008d0  72 69 6e 67 20 6d 75 73  74 20 73 74 61 72 74 20  |ring must start |
000008e0  77 69 74 68 20 61 20 6e  75 6d 62 65 72 20 61 74  |with a number at|
000008f0  20 6c 69 6e 65 20 22 3b  c3 28 4c 69 6e 65 43 6f  | line ";.(LineCo|
00000900  75 6e 74 25 29 27 54 65  6d 70 24 0d 02 4e 6f 20  |unt%)'Temp$..No |
00000910  20 20 e7 20 ac 20 53 54  44 53 65 70 65 72 61 74  |  . . STDSeperat|
00000920  65 25 20 8c 20 f1 22 4e  6f 20 5b 30 30 5d 2c 20  |e% . ."No [00], |
00000930  73 68 6f 75 6c 64 20 62  65 20 62 65 74 77 65 65  |should be betwee|
00000940  6e 20 53 54 44 20 63 6f  64 65 20 61 6e 64 20 45  |n STD code and E|
00000950  78 63 68 61 6e 67 65 20  6e 61 6d 65 20 61 74 20  |xchange name at |
00000960  6c 69 6e 65 20 22 3b c3  28 4c 69 6e 65 43 6f 75  |line ";.(LineCou|
00000970  6e 74 25 29 27 54 65 6d  70 24 0d 02 58 65 20 20  |nt%)'Temp$..Xe  |
00000980  20 e7 20 ac 20 45 78 63  68 61 6e 67 65 53 65 70  | . . ExchangeSep|
00000990  65 72 61 74 65 25 20 8c  20 f1 22 4e 6f 20 5b 30  |erate% . ."No [0|
000009a0  31 5d 2c 20 73 68 6f 75  6c 64 20 62 65 20 61 66  |1], should be af|
000009b0  74 65 72 20 45 78 63 68  61 6e 67 65 20 6e 61 6d  |ter Exchange nam|
000009c0  65 20 61 74 20 6c 69 6e  65 20 22 3b c3 28 4c 69  |e at line ";.(Li|
000009d0  6e 65 43 6f 75 6e 74 25  29 27 54 65 6d 70 24 0d  |neCount%)'Temp$.|
000009e0  02 62 6f 20 20 20 e7 20  57 72 6f 6e 67 53 54 44  |.bo   . WrongSTD|
000009f0  46 6f 72 6d 61 74 25 20  8c 20 f1 22 53 54 44 20  |Format% . ."STD |
00000a00  63 6f 64 65 20 69 73 20  69 6e 63 6f 72 72 65 63  |code is incorrec|
00000a10  74 6c 79 20 66 6f 72 6d  61 74 74 65 64 20 2d 22  |tly formatted -"|
00000a20  3b c3 28 50 6f 73 69 74  69 6f 6e 25 29 3b 22 2d  |;.(Position%);"-|
00000a30  20 61 74 20 6c 69 6e 65  20 22 3b c3 28 4c 69 6e  | at line ";.(Lin|
00000a40  65 43 6f 75 6e 74 25 29  27 54 65 6d 70 24 0d 02  |eCount%)'Temp$..|
00000a50  6c 5a 20 20 20 e7 20 4d  75 6c 74 69 70 6c 65 4f  |lZ   . MultipleO|
00000a60  6e 65 73 25 20 8c 20 f1  22 54 68 65 72 65 20 61  |nes% . ."There a|
00000a70  72 65 20 74 6f 6f 20 6d  61 6e 79 20 5b 30 31 5d  |re too many [01]|
00000a80  27 73 20 69 6e 20 64 61  74 61 20 61 74 20 6c 69  |'s in data at li|
00000a90  6e 65 20 22 3b c3 28 4c  69 6e 65 43 6f 75 6e 74  |ne ";.(LineCount|
00000aa0  25 29 27 54 65 6d 70 24  0d 02 76 8b 20 20 20 e7  |%)'Temp$..v.   .|
00000ab0  20 42 61 64 43 6f 64 65  25 20 84 20 43 61 70 73  | BadCode% . Caps|
00000ac0  25 20 84 20 54 6f 6f 4c  6f 6e 67 25 20 84 20 4e  |% . TooLong% . N|
00000ad0  6f 53 54 44 25 20 84 20  57 72 6f 6e 67 53 54 44  |oSTD% . WrongSTD|
00000ae0  46 6f 72 6d 61 74 25 20  84 20 4d 75 6c 74 69 70  |Format% . Multip|
00000af0  6c 65 4f 6e 65 73 25 20  84 20 28 ac 20 53 54 44  |leOnes% . (. STD|
00000b00  53 65 70 65 72 61 74 65  25 29 20 84 20 28 ac 20  |Seperate%) . (. |
00000b10  45 78 63 68 61 6e 67 65  53 65 70 65 72 61 74 65  |ExchangeSeperate|
00000b20  25 29 20 8c 20 45 72 72  6f 72 43 6f 75 6e 74 25  |%) . ErrorCount%|
00000b30  2b 3d 31 0d 02 80 14 20  20 20 4c 69 6e 65 43 6f  |+=1....   LineCo|
00000b40  75 6e 74 25 2b 3d 31 0d  02 8a 0a fd 20 c5 23 49  |unt%+=1..... .#I|
00000b50  25 0d 02 94 08 d9 23 49  25 0d 02 9e 05 3a 0d 02  |%.....#I%....:..|
00000b60  a8 41 f1 20 c3 28 4c 69  6e 65 43 6f 75 6e 74 25  |.A. .(LineCount%|
00000b70  29 3b 22 20 6c 69 6e 65  73 20 74 65 73 74 65 64  |);" lines tested|
00000b80  2e 20 20 20 22 3b c3 28  45 72 72 6f 72 43 6f 75  |.   ";.(ErrorCou|
00000b90  6e 74 25 29 3b 22 20 45  72 72 6f 72 73 2e 22 0d  |nt%);" Errors.".|
00000ba0  02 b2 05 3a 0d 02 bc 0a  2a 53 50 4f 4f 4c 0d 02  |...:....*SPOOL..|
00000bb0  c6 22 ff 22 53 65 74 54  79 70 65 20 22 2b 45 72  |."."SetType "+Er|
00000bc0  72 6f 72 46 69 6c 65 24  2b 22 20 54 45 58 54 22  |rorFile$+" TEXT"|
00000bd0  0d 02 d0 05 e0 0d ff                              |.......|
00000bd7