Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for ibmerror.rex

(view source code of ibmerror.rex as plain text)

  1. /* IBMError.rex,  Version 1.01                                          */
  2. /* Display error type and message for the specified IBM PC error number */
  3. /* Written by Rob van der Woude                                         */
  4. /* http://www.robvanderwoude.com                                        */
  5.  
  6. say
  7. if ARG( 1, e ) then do
  8. 	if DATATYPE( ARG( 1 ), "Number" ) \= 1 then do
  9. 		say "IBMError.rex, Version 1.01"
  10. 		say "Display error type and message for the specified IBM PC error number."
  11. 		say
  12. 		say "Usage:  IBMERROR  [ error_number ]"
  13. 		say
  14. 		say "Works interactively when no error number is specified on the command line."
  15. 		say
  16. 		say "Written by Rob van der Woude"
  17. 		say "http://www.robvanderwoude.com"
  18. 		exit 1
  19. 	end
  20. 	else do
  21. 		say "Searching IBM error message database, please wait . . ."
  22. 	end
  23. end
  24. else do
  25. 	say "Loading IBM error message database into memory, please wait . . ."
  26. end
  27.  
  28. error. = ""
  29. error.0 = 16540
  30. do i=1 to error.0
  31.         error.i = "* * Sorry, I'm not familiar with this error number * *"
  32. end
  33. do i=100 to 16500 by 100
  34. 	error.i = ""
  35. end
  36.  
  37. error.10 = "Undetermined problem errors"
  38. error.11 = "Undetermined problem error"
  39. error.12 = "Undetermined problem error"
  40. error.13 = "Undetermined problem error"
  41. error.14 = "Undetermined problem error"
  42. error.15 = "Undetermined problem error"
  43. error.16 = "Undetermined problem error"
  44. error.17 = "Undetermined problem error"
  45. error.18 = "Undetermined problem error"
  46. error.19 = "Undetermined problem error"
  47.  
  48. error.20 = "Power supply errors"
  49. error.21 = "Power supply error"
  50. error.22 = "Power supply error"
  51. error.23 = "Power supply error"
  52. error.24 = "Power supply error"
  53. error.25 = "Power supply error"
  54. error.26 = "Power supply error"
  55. error.27 = "Power supply error"
  56. error.28 = "Power supply error"
  57. error.29 = "Power supply error"
  58.  
  59. error.100 = "System board errors"
  60. error.101 = "System board error - Interrupt failure"
  61. error.102 = "System board error - Timer failure"
  62. error.103 = "System board error - Timer interrupt failure"
  63. error.104 = "System board error - Protected mode failure"
  64. error.105 = "System board error - Last 8042 command not accepted"
  65. error.106 = "System board error - Converting logic test"
  66. error.107 = "System board error - Hot NMI test"
  67. error.108 = "System board error - Timer bus test"
  68. error.109 = "Direct memory access test error"
  69. error.110 = "System board memory"
  70. error.111 = "Adapter memory"
  71. error.112 = "(any adapter in system unit)"
  72. error.113 = "(any adapter in system unit)"
  73. error.121 = "Unexpected hardware interrupts occurred"
  74. error.131 = "Cassette wrap test failed"
  75. error.151 = "System Board Error; Defective battery"
  76. error.152 = "System Board Error; Real time clock failure"
  77. error.161 = "System Options Error - (Run SETUP) Battery failure"
  78. error.162 = "System options not set correctly-(Run SETUP)"
  79. error.163 = "Time and date not set - (Run SETUP)"
  80. error.164 = "Memory size error - (Run SETUP)"
  81. error.165 = "System options not set - (Run SETUP)"
  82. error.166 = "(any adapter in system unit)"
  83. error.199 = "User-indicated configuration not correct"
  84.  
  85. error.200 = "Memory (RAM) errors"||"D"x||"A"x||"          (xxyyyy yyzz 201 bad ram chip in bank xx row zz)"
  86. error.201 = "Memory test failed"
  87. error.202 = "Memory address error"
  88. error.203 = "Memory address error"
  89. error.215 = "(system board memory failure)"
  90. error.216 = "(system board memory failure)"
  91.  
  92. error.300 = "Keyboard errors"
  93. error.301 = "Keyboard did not respond to software reset correctly, or a stuck key"||"D"x||"A"x||"          failure was detected. If a stuck key was detected, the scan code for"||"D"x||"A"x||"          the key is displayed in hexadecimal."
  94. /* For example, the error code 49 301 indicates that Key 73, the PAGE UP key, has failed (49 hex = 73 decimal)" */
  95. error.302 = "User-indicated error from the keyboard test, or AT keylock is locked"
  96. error.303 = "Keyboard or system unit error"
  97. error.304 = "Keyboard or system unit error; CMOS does not match system"
  98. error.305 = "Models 50 and 60 fuse or keyboard cable error"
  99. error.341 = "Replace keyboard"
  100. error.342 = "Replace interface cable"
  101. error.343 = "Replace enhancement card or cable"
  102.  
  103. error.400 = "Monochrome monitor errors"
  104. error.401 = "Monochrome memory test, horizontal synchronous frequency test,"||"D"x||"A"x||"          or video test failed"
  105. error.408 = "User-indicated display attributes failure"
  106. error.416 = "User-indicated character set failure"
  107. error.424 = "User-indicated 80 X 25 mode failure"
  108. error.432 = "Parallel port test failed (monochrome adapter)"
  109.  
  110. error.500 = "Color monitor errors"
  111. error.501 = "Color memory test failed, horizontal synchronous frequency test,"||"D"x||"A"x||"          or video test failed"
  112. error.508 = "User-indicated display attribute failure"
  113. error.516 = "User-indicated character set failure"
  114. error.524 = "User-indicated 80 X 25 mode failure"
  115. error.532 = "User-indicated 40 X 25 mode failure"
  116. error.540 = "User-indicated 320 X 200 graphics mode failure"
  117. error.548 = "User-indicated 640 X 200 graphics mode failure"
  118.  
  119. error.600 = "Diskette drive errors"
  120. error.601 = "Diskette power-on diagnostics test failed"
  121. error.602 = "Diskette test failed; boot record is not valid"
  122. error.603 = "Diskette size error"
  123. error.606 = "Diskette verify function failed"
  124. error.607 = "Write-protected diskette"
  125. error.608 = "Bad command diskette status returned"
  126. error.610 = "Diskette initialization failed"
  127. error.611 = "Timeout - diskette status returned"
  128. error.612 = "Bad NEC (controller) - diskette status returned"
  129. error.613 = "Bad DMA - diskette status returned"
  130. error.614 = "DMA Boundary error"
  131. error.621 = "Bad seek - diskette status returned"
  132. error.622 = "Bad CRC - diskette status returned"
  133. error.623 = "Record not found - diskette status returned"
  134. error.624 = "Bad address mark - diskette status returned"
  135. error.625 = "Bad NEC (controller) seek - diskette status returned"
  136. error.626 = "Diskette data compare error"
  137. error.627 = "Diskette change line error"
  138. error.628 = "Diskette removed"
  139.  
  140. error.700 = "8087 or 80287 math coprocessor errors"
  141. error.701 = "Math coprocessor test failed"
  142.  
  143. error.900 = "Parallel printer adapter errors"
  144. error.901 = "Parallel printer adapter test failed"
  145.  
  146. error.1000 = "Reserved for parallel printer adapter"
  147. error.1001 = "Alt printer Adapter test failed"
  148.  
  149. error.1100 = "Asynchronous communications adapter errors"
  150. error.1101 = "Asynchronous communications adapter test failed"
  151. error.1102 = "Any serial device (system board)"
  152. error.1106 = "Any serial device (system board)"
  153. error.1107 = "Communications cable (system board)"
  154. error.1108 = "Any serial device (system board)"
  155. error.1109 = "Any serial device (system board)"
  156. error.1110 = "Modem status register not clear"
  157. error.1111 = "Ring indicate failure"
  158. error.1112 = "Trailing edge ring indicate failure"
  159. error.1113 = "Receive and delta receive line signal detect failure"
  160. error.1114 = "Receive line signal detect failure"
  161. error.1115 = "Delta receive line signal detect failure"
  162. error.1116 = "Line control register; all bits cannot be set"
  163. error.1117 = "Line control register; all bits cannot be reset"
  164. error.1118 = "Xmit holding and/or shift register is stuck on"
  165. error.1119 = "Data ready stuck on"
  166. error.1120 = "Interrupt enable register, all bits cannot be set"
  167. error.1121 = "Interrupt enable register, all bits cannot be reset"
  168. error.1122 = "Interrupt pending stuck on"
  169. error.1123 = "Interrupt ID register stuck on"
  170. error.1124 = "Modem control register, all bits cannot be set"
  171. error.1125 = "Modem control register, all bits cannot be reset"
  172. error.1126 = "Modem status register, all bits cannot be set"
  173. error.1127 = "Modem status register, all bits cannot be reset"
  174. error.1128 = "Interrupt ID failure"
  175. error.1129 = "Cannot force overrun error"
  176. error.1130 = "No modem status interrupt"
  177. error.1131 = "Invalid interrupt pending"
  178. error.1132 = "No data ready"
  179. error.1133 = "No data available interrupt"
  180. error.1134 = "No transmit holding interrupt"
  181. error.1135 = "No interrupts"
  182. error.1136 = "No received line status interrupt"
  183. error.1137 = "No receive data available"
  184. error.1138 = "Transmit holding register not empty"
  185. error.1139 = "No modem status interrupt"
  186. error.1140 = "Transmit holding register not empty"
  187. error.1141 = "No interrupts"
  188. error.1142 = "No IRQ4 interrupt"
  189. error.1143 = "No IRQ3 interrupt"
  190. error.1144 = "No data transferred"
  191. error.1145 = "Maximum BAUD rate failed"
  192. error.1146 = "Minimum BAUD rate failed"
  193. error.1148 = "Timeout error"
  194. error.1149 = "Invalid data returned"
  195. error.1150 = "Modem status register error"
  196. error.1151 = "No DSR and Delta DSR"
  197. error.1152 = "No data set ready"
  198. error.1153 = "No delta"
  199. error.1154 = "Modem status register not clear"
  200. error.1155 = "No CTS and Delta CTS"
  201. error.1156 = "No clear to send"
  202. error.1157 = "No delta CTS"
  203.  
  204. error.1200 = "Alternate asynchronous communications adapter errors"
  205. error.1201 = "Alternate asynchronous communications adapter test failed"
  206. error.1202 = "Dual Asynchronous Adapter/A (Any serial device)"
  207. error.1206 = "Dual Asynchronous Adapter/A (Any serial device)"
  208. error.1207 = "Dual Asynchronous Adapter/A board error"
  209. error.1208 = "Dual Asynchronous Adapter/A (Any serial device)"
  210. error.1209 = "Dual Asynchronous Adapter/A (Any serial device)"
  211.  
  212. error.1300 = "Game control adapter errors"
  213. error.1301 = "Game control adapter test failed"
  214. error.1302 = "Joystick test failed"
  215.  
  216. error.1400 = "Printer errors"
  217. error.1401 = "Printer test failed"
  218. error.1404 = "Matrix printer failed"
  219.  
  220. error.1500 = "Synchronous data link control (SDLC) communications adapter errors"
  221. error.1510 = "8255 Port B failure"
  222. error.1511 = "8255 Port A failure"
  223. error.1512 = "8255 Port C failure"
  224. error.1513 = "8253 Timer 1 did not reach terminal count"
  225. error.1514 = "8253 Timer 1 stuck on"
  226. error.1515 = "8253 Timer 0 did not reach terminal count"
  227. error.1516 = "8253 Timer 0 stuck on"
  228. error.1517 = "8253 Timer 2 did not reach terminal count"
  229. error.1518 = "8253 Timer 2 stuck on"
  230. error.1519 = "8273 Port B error"
  231. error.1520 = "8273 Port A error"
  232. error.1521 = "8273 command/read timeout"
  233. error.1522 = "Interrupt level 4 failure"
  234. error.1523 = "Ring Indicate stuck on"
  235. error.1524 = "Receive clock stuck on"
  236. error.1525 = "Transmit clock stuck on"
  237. error.1526 = "Test indicate stuck on"
  238. error.1527 = "Ring indicate not on"
  239. error.1528 = "Receive clock not on"
  240. error.1529 = "Transmit clock not on"
  241. error.1530 = "Test indicate not on"
  242. error.1531 = "Data set ready not on"
  243. error.1532 = "Carrier detect not on"
  244. error.1533 = "Clear to send not on"
  245. error.1534 = "Data set ready stuck on"
  246. error.1536 = "Clear to send stuck on"
  247. error.1537 = "Level 3 interrupt failure"
  248. error.1538 = "Receive interrupt results error"
  249. error.1539 = "Wrap data miscompare"
  250. error.1540 = "DMA channel 1 error"
  251. error.1541 = "DMA channel 1 error"
  252. error.1542 = "Error in 8273 error checking or status reporting"
  253. error.1547 = "Stray interrupt level 4"
  254. error.1548 = "Stray interrupt level 3"
  255. error.1549 = "Interrupt presentation sequence timeout"
  256.  
  257. error.1600 = "Display emulation errors (327x, 5520, 525x)"
  258.  
  259. error.1700 = "Fixed disk errors"
  260. error.1701 = "Fixed Disk/Adapter"
  261. error.1702 = "Time out error"
  262. error.1703 = "Seek error"
  263. error.1704 = "Disk adapter error"
  264. error.1705 = "No record found"
  265. error.1706 = "Write fault error"
  266. error.1707 = "Track 0 error"
  267. error.1708 = "Head select error"
  268. error.1709 = "Defective ECC"
  269. error.1710 = "Read buffer overrun"
  270. error.1711 = "Bad address mark"
  271. error.1712 = "Error-cause not determined"
  272. error.1713 = "Data compare error"
  273. error.1714 = "Drive not ready"
  274. error.1780 = "Disk 0 failure"
  275. error.1781 = "Disk 1 failure"
  276. error.1782 = "Disk adapter error"
  277. error.1790 = "Disk 0 error"
  278. error.1791 = "Disk 1 error"
  279.  
  280. error.1800 = "I/O expansion unit errors"
  281. error.1801 = "I/O expansion unit POST error"
  282. error.1810 = "Enable/Disable failure"
  283. error.1811 = "Extender card warp test failed (disabled)"
  284. error.1812 = "High order address lines failure (disabled)"
  285. error.1813 = "Wait state failure (disabled)"
  286. error.1814 = "Enable/Disable could not be set on"
  287. error.1815 = "Wait state failure (disabled)"
  288. error.1816 = "Extender card warp test failed (enabled)"
  289. error.1817 = "High order address lines failure (enabled)"
  290. error.1818 = "Disable not functioning"
  291. error.1819 = "Wait request switch not set correctly"
  292. error.1820 = "Receiver card wrap test failure"
  293. error.1821 = "Receiver high order address lines failure"
  294.  
  295. error.1900 = "3270 PC attachment card errors"
  296.  
  297. error.2000 = "Binary synchronous communications (BSC) adapter errors"
  298. error.2010 = "8255 Port A failure"
  299. error.2011 = "8255 Port B failure"
  300. error.2012 = "8255 Port C failure"
  301. error.2013 = "8253 Timer 1 did not reach terminal count"
  302. error.2014 = "8253 Timer 1 stuck on"
  303. error.2016 = "8253 Timer 2 did not reach terminal count, or timer 2 stuck on"
  304. error.2017 = "8251 Data set ready failed to come on"
  305. error.2018 = "8251 Clear to send not sensed"
  306. error.2019 = "8251 Data set ready stuck on"
  307. error.2020 = "8251 Clear to send stuck on"
  308. error.2021 = "8251 Hardware reset failed"
  309. error.2022 = "8251 Software reset failed"
  310. error.2023 = "8251 Software "error reset" failed"
  311. error.2024 = "8251 Transmit ready did not come on"
  312. error.2025 = "8251 Receive ready did not come on"
  313. error.2026 = "8251 Could not force "overrun" error status"
  314. error.2027 = "Interrupt failure - no timer interrupt"
  315. error.2028 = "Interrupt failure - transmit, replace card or planar"
  316. error.2029 = "Interrupt failure - transmit, replace card"
  317. error.2030 = "Interrupt failure - receive, replace card or planar"
  318. error.2031 = "Interrupt failure - receive, replace card"
  319. error.2033 = "Ring indicate stuck on"
  320. error.2034 = "Receive clock stuck on"
  321. error.2035 = "Transmit clock stuck on"
  322. error.2036 = "Test indicate stuck on"
  323. error.2037 = "Ring indicate stuck on"
  324. error.2038 = "Receive clock not on"
  325. error.2039 = "Transmit clock not on"
  326. error.2040 = "Test indicate not on"
  327. error.2041 = "Data set ready not on"
  328. error.2042 = "Carrier detect not on"
  329. error.2043 = "Clear to send not on"
  330. error.2044 = "Data set ready stuck on"
  331. error.2045 = "Carrier detect stuck on"
  332. error.2046 = "Clear to send stuck on"
  333. error.2047 = "Unexpected transmit interrupt"
  334. error.2048 = "Unexpected receive interrupt"
  335. error.2049 = "Transmit data did not equal receive data"
  336. error.2050 = "8251 detected overrun error"
  337. error.2051 = "Lost data set ready during data wrap"
  338. error.2052 = "Receive timeout during data wrap"
  339.  
  340. error.2100 = "Alternate binary synchronous communications adapter errors"
  341. error.2110 = "8255 Port A failure"
  342. error.2111 = "8255 Port B failure"
  343. error.2112 = "8255 Port C failure"
  344. error.2113 = "8253 Timer 1 did not reach terminal count"
  345. error.2114 = "8253 Timer 1 stuck on"
  346. error.2115 = "8253 Timer 2 did not reach terminal count, or timer 2 stuck on"
  347. error.2116 = "8251 Data set ready failed to come on"
  348. error.2117 = "8251 Clear to send not sensed"
  349. error.2118 = "8251 Data set ready stuck on"
  350. error.2119 = "8251 Clear to send stuck on"
  351. error.2120 = "8251 Hardware reset failed"
  352. error.2121 = "8251 Software reset failed"
  353. error.2122 = "8251 Software "error reset" failed"
  354. error.2123 = "8251 Transmit ready did not come on"
  355. error.2124 = "8251 Receive ready did not come on"
  356. error.2125 = "8251 Could not force "overrun" error status"
  357. error.2126 = "Interrupt failure - no timer interrupt"
  358. error.2128 = "Interrupt failure - transmit, replace card or planar"
  359. error.2129 = "Interrupt failure - transmit, replace card"
  360. error.2130 = "Interrupt failure - receive, replace card or planar"
  361. error.2131 = "Interrupt failure - receive, replace card"
  362. error.2133 = "Ring indicate stuck on"
  363. error.2134 = "Receive clock stuck on"
  364. error.2135 = "Transmit clock stuck on"
  365. error.2136 = "Test indicate stuck on"
  366. error.2137 = "Ring indicate stuck on"
  367. error.2138 = "Receive clock not on"
  368. error.2139 = "Transmit clock not on"
  369. error.2140 = "Test indicate not on"
  370. error.2141 = "Data set ready not on"
  371. error.2142 = "Carrier detect not on"
  372. error.2143 = "Clear to send not on"
  373. error.2144 = "Data set ready stuck on"
  374. error.2145 = "Carrier detect stuck on"
  375. error.2146 = "Clear to send stuck on"
  376. error.2147 = "Unexpected transmit interrupt"
  377. error.2148 = "Unexpected receive interrupt"
  378. error.2149 = "Transmit data did not equal receive data"
  379. error.2150 = "8251 detected overrun error"
  380. error.2151 = "Lost data set ready during data wrap"
  381. error.2152 = "Receive timeout during data wrap"
  382.  
  383. error.2200 = "Cluster adapter errors"
  384.  
  385. error.2400 = "Enhanced graphics adapter errors"
  386.  
  387. error.2600 = "XT/370 error codes"
  388.  
  389. error.2700 = "XT/370 error codes"
  390.  
  391. error.2900 = "Color matrix printer errors"
  392. error.2901 = "Color matrix printer error"
  393. error.2902 = "Color matrix printer error"
  394. error.2904 = "Color matrix printer error"
  395.  
  396. error.3000 = "Primary PC Network Adapter Error"
  397. error.3001 = "CPU Failure"
  398. error.3002 = "ROM Failure"
  399. error.3003 = "ID Failure"
  400. error.3004 = "RAM Failure"
  401. error.3005 = "HIC Failure"
  402. error.3006 = "+/- 12v Failed"
  403. error.3007 = "Digital Loopback Failure"
  404. error.3008 = "Host Detected HIC Failure"
  405. error.3009 = "Synchronous Fail & No Go Bit"
  406. error.3010 = "HIC Test OK & No Go Bit"
  407. error.3011 = "Go Bit & No CMD 41"
  408. error.3012 = "Card not present"
  409. error.3013 = "Digital Failure ( Fall Through )"
  410. error.3015 = "Analog Failure"
  411. error.3041 = "Hot Carrier (not this card)"
  412. error.3042 = "Hot Carrier (This Card)"
  413.  
  414. error.3100 = "Secondary PC Network Adapter Error"
  415. error.3101 = "CPU Failure"
  416. error.3102 = "ROM Failure"
  417. error.3103 = "ID Failure"
  418. error.3104 = "RAM Failure"
  419. error.3105 = "HIC Failure"
  420. error.3106 = "+/- 12v Failed"
  421. error.3107 = "Digital Loopback Failure"
  422. error.3108 = "Host Detected HIC Failure"
  423. error.3109 = "Synchronous Fail & No Go Bit"
  424. error.3110 = "HIC Test OK & No Go Bit"
  425. error.3111 = "Go Bit & No CMD 41"
  426. error.3112 = "Card not present"
  427. error.3113 = "Digital Failure ( Fall Through )"
  428. error.3115 = "Analog Failure"
  429. error.3141 = "Hot Carrier (not this card)"
  430. error.3142 = "Hot Carrier (THIS CARD !!)"
  431.  
  432. error.3300 = "Compact printer errors"
  433.  
  434. error.7400 = "Display adapter 8514/A"
  435.  
  436. error.8500 = "80286 Expanded Memory Adapter/A"
  437. error.8500 = "80286 Expanded Memory Adapter/A"
  438. error.8502 = "80286 Expanded Memory Adapter/A"
  439. error.8503 = "80286 Expanded Memory Adapter/A"
  440. error.8504 = "80286 Expanded Memory Adapter/A"
  441. error.8505 = "80286 Expanded Memory Adapter/A"
  442. error.8506 = "80286 Expanded Memory Adapter/A"
  443. error.8507 = "80286 Expanded Memory Adapter/A"
  444. error.8508 = "80286 Expanded Memory Adapter/A"
  445. error.8509 = "80286 Expanded Memory Adapter/A"
  446. error.8510 = "80286 Expanded Memory Adapter/A"
  447. error.8511 = "80286 Expanded Memory Adapter/A"
  448. error.8512 = "80286 Expanded Memory Adapter/A"
  449. error.8513 = "80286 Expanded Memory Adapter/A"
  450. error.8514 = "80286 Expanded Memory Adapter/A"
  451. error.8515 = "80286 Expanded Memory Adapter/A"
  452. error.8516 = "80286 Expanded Memory Adapter/A"
  453. error.8517 = "80286 Expanded Memory Adapter/A"
  454. error.8518 = "80286 Expanded Memory Adapter/A"
  455. error.8519 = "80286 Expanded Memory Adapter/A"
  456. error.8520 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  457. error.8521 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  458. error.8522 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  459. error.8523 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  460. error.8524 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  461. error.8525 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  462. error.8526 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  463. error.8527 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  464. error.8528 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  465. error.8529 = "Memory module package on the 80286 Expanded Memory Adapter/A"
  466.  
  467. error.8600 = "PS/2 pointing device errors"
  468. error.8601 = "Pointing device (IBM mouse)"
  469. error.8602 = "Pointing device"
  470. error.8603 = "System board error"
  471. error.8604 = "System board : Pointing device"
  472.  
  473. error.10000 = "Multiprotocol Adapter/A"
  474. error.10002 = "Multiprotocol Adapter/A any serial device"
  475. error.10006 = "Multiprotocol Adapter/A any serial device"
  476. error.10007 = "Communications cable Multiprotocol Adapter/A"
  477. error.10008 = "Multiprotocol Adapter/A any serial device"
  478. error.10009 = "Multiprotocol Adapter/A any serial device"
  479.  
  480. error.10100 = "Modem Adapter/A"
  481. error.10102 = "Modem Adapter/A any serial device"
  482. error.10106 = "Modem Adapter/A any serial device"
  483. error.10108 = "Modem Adapter/A any serial device"
  484. error.10109 = "Modem Adapter/A any serial device"
  485.  
  486. error.10400 = "Fixed disk adapter (ESDI) drives 0 or 1 (C or D)"
  487. error.10480 = "Fixed disk C, adapter (ESDI) or system board error"
  488. error.10481 = "Fixed disk D, adapter (ESDI) or system board error"
  489. error.10482 = "Fixed disk C or system board error"
  490. error.10483 = "Fixed disk adapter (ESDI) or system board error"
  491. error.10490 = "Fixed disk C or adapter (ESDI) error"
  492. error.10491 = "Fixed disk C or adapter (ESDI) error"
  493.  
  494. error.16500  = "6157 Tape Attachment Adapter"
  495. error.16520  = "6157 Streaming Tape Drive"
  496. error.16540  = "6157 Streaming Tape Drive or tape attachment adapter"
  497.  
  498. if ARG( 1, e ) then do
  499. 	number = ARG( 1 )
  500. 	number = FORMAT( number )
  501.         type = 100 * trunc( number / 100 )
  502. 	if type = 0 then do
  503. 		type = 10
  504. 		if number > 19 & number < 30 then type = 20
  505. 	end
  506. 	"@CLS"
  507. 	say
  508. 	say "Number  : "||number
  509. 	if error.type = "" then do
  510. 		say "Type    : * * Sorry, unknown error type * *"
  511. 	end
  512. 	else do
  513. 	        say "Type    : "||error.type
  514. 	        if number \= type then say "Message : "||error.number
  515. 	end
  516.         say
  517. end
  518. else do 
  519. 	"@CLS"
  520. 	do forever
  521. 	        say "Enter an error number (or press Return to quit):"
  522.         	pull number
  523. 	        if number = "" then leave
  524. 		if DATATYPE( number, "Number" ) \= 1 then do
  525. 			say "Enter error NUMBERS only"||X2C( "07" )
  526. 		end
  527. 		else do
  528. 			number = FORMAT( number )
  529. 			type = 100 * trunc( number / 100 )
  530. 			if type = 0 then do
  531. 				type = 10
  532. 				if number > 19 & number < 30 then type = 20
  533. 			end
  534. 			if error.type = "" then do
  535. 				say "Type    : * * Sorry, unknown error type * *"
  536. 			end
  537. 			else do
  538. 			        say "Type    : "||error.type
  539.         			if number \= type then say "Message : "||error.number
  540. 			end
  541. 		end
  542. 	        say
  543. 	end
  544. end
  545.  

page last uploaded: 2017-04-06, 13:33