User Tools

Site Tools


cdc:nos2.source:nam5871:ns_kdd

NS$KDD

Table Of Contents

  • [00005] PROC NS$KDD(REASON)
  • [00007] NS$KDD - ISSUE HOP COMMAND DIAGNOSTIC.
  • [00011] ISSUE HOP COMMAND DIAGNOSTIC.
  • [00046] PROC NS$DBG
  • [00052] PROC NS$TKD

Source Code

NS$KDD.txt
  1. *DECK NS$KDD
  2. USETEXT HOC$NS
  3. USETEXT LIN$NS
  4.  
  5. PROC NS$KDD(REASON); # ISSUE HOP COMMAND DIAGNOSTIC #
  6.  
  7. # TITLE NS$KDD - ISSUE HOP COMMAND DIAGNOSTIC. #
  8.  
  9. BEGIN # NS$KDD #
  10. #
  11. ** NS$KDD - ISSUE HOP COMMAND DIAGNOSTIC.
  12. *
  13. * J.C. LEE 1981
  14. *
  15. * THIS ROUTINE ISSUES HOP COMMAND DIAGNOSTIC.
  16. *
  17. * PROC NS$KDD(REASON)
  18. *
  19. * ENTRY:
  20. * REASON - HOP COMMAND ERROR REASON CODE:
  21. * 0 - NO ERROR.
  22. * 1 - SYNTAX ERROR.
  23. * 2 - UNRECOGNIZABLE COMMAND VERB.
  24. * 3 - ILLEGAL PARAMETER.
  25. * 4 - NPU NOT CONFIGURED.
  26. * 5 - NPU NOT SPECIFIED.
  27. * 6 - NLF NOT SPECIFIED.
  28. * 7 - NLF NOT AVAILABLE.
  29. * 8 - NPU ACTIVE, CANNOT ACTION.
  30. * 9 - BAD NLF FILE FORMAT.
  31. *
  32. * EXIT:
  33. * NONE.
  34. *
  35. * METHOD:
  36. * USE REASON CODE AS INDEX TO A TABLE OF HOP COMMAND MESSAGES.
  37. * CALL NS$TKD TO TRANSFER THE INDEXED LINE TO *KDB*.
  38. *
  39. #
  40.  
  41. ITEM REASON S:HOPCMDERR;
  42.  
  43. $BEGIN
  44. XREF
  45. BEGIN
  46. PROC NS$DBG; # TRACE CALL #
  47. END
  48. $END
  49.  
  50. XREF
  51. BEGIN
  52. PROC NS$TKD; # TRANSFER LINE TO KDB #
  53. END
  54.  
  55. DEF L$HCD # 4 #; # SIZE OF DIAGNOSTIC MESSAGE #
  56. DEF MAX$NMSGS # 9 #; # MAXIMUM NUMBER OF DIAGNOSTIC #
  57. ARRAY ILLHOPCMD[1:MAX$NMSGS]S(L$HCD);
  58. BEGIN # HOP COMMAND ERROR DIAGNOSTICS #
  59. ITEM HCD$LNHDR U(00,00,60); # LINE HEADER WORD #
  60. ITEM HCD$LNID U(00,00,24) = [MAX$NMSGS(LIN$IDENT)]; # LINE ID#
  61. ITEM HCD$LNSIZE U(00,42,18) = [MAX$NMSGS(L$HCD)]; # LINE SIZE #
  62. ITEM HCD$ERROR C(01,00,28) = [ # K DISPLAY ERROR DIAGNOSTICS #
  63. "SYNTAX ERROR.",
  64. "UNRECOGNIZED COMMAND.",
  65. "ILLEGAL PARAMETER.",
  66. "NPU IS NOT CONFIGURED.",
  67. "NPU IS NOT SPECIFIED.",
  68. "NLF IS NOT SPECIFIED.",
  69. "NLF IS NOT AVAILABLE.",
  70. "NPU IS ACTIVE,TRY LATER.",
  71. "BAD NLF FILE FORMAT.",
  72. ];
  73. ITEM HCD$END U(03,48,12) = [MAX$NMSGS(0)]; # LINE TERMINATOR#
  74. END
  75.  
  76. CONTROL EJECT;
  77.  
  78. $BEGIN
  79. NS$DBG("KDD"); # TRACE CALL #
  80. $END
  81.  
  82. IF REASON LQ MAX$NMSGS
  83. THEN # VALID REASON CODE #
  84. BEGIN # ISSUE DIAGNOSTIC #
  85. NS$TKD(ILLHOPCMD[REASON],L$HCD,1);
  86. END
  87.  
  88. RETURN;
  89. END # NS$KDD #
  90. TERM
  91.  
cdc/nos2.source/nam5871/ns_kdd.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator