User Tools

Site Tools


cdc:nos2.source:nam5871:ns_pcm

NS$PCM

Table Of Contents

  • [00005] PROC NS$PCM1)
  • [00007] NS$PCM - PROCESS NS PROGRAM COMMANDS.
  • [00011] PROCESS NS PROGRAM COMMANDS.
  • [00036] PROC NS$DBG
  • [00037] PROC NS$STD
  • [00043] PROC NETDBG
  • [00044] PROC NETDMB
  • [00045] PROC NETREL
  • [00046] PROC NETSTC

Source Code

NS$PCM.txt
  1. *DECK NS$PCM
  2. USETEXT COM$NS
  3. USETEXT DEF$NS
  4. USETEXT PCM$NS
  5. PROC NS$PCM((PCMORDINAL)); # PROCESS NS PROGRAM COMMANDS #
  6.  
  7. # TITLE NS$PCM - PROCESS NS PROGRAM COMMANDS. #
  8.  
  9. BEGIN # NS$PCM #
  10. #
  11. ** NS$PCM - PROCESS NS PROGRAM COMMANDS.
  12. *
  13. * J.C. LEE 1981
  14. *
  15. * THIS ROUTINE PROCESSES NS PROGRAM COMMANDS.
  16. *
  17. * PROC NS$PCM((PCMORDINAL))
  18. *
  19. * ENTRY:
  20. * PCMORDINAL - PROGRAM COMMAND ORDINAL.
  21. *
  22. * EXIT:
  23. * NONE.
  24. *
  25. * METHOD:
  26. * USE "PCMORDINAL" TO SWITCH TO THE APPROPRIATE
  27. * PARAGRAPH TO PROCESS THE COMMAND.
  28. *
  29. #
  30.  
  31. ITEM PCMORDINAL S:PCMDI;
  32.  
  33. $BEGIN
  34. XREF
  35. BEGIN
  36. PROC NS$DBG; # TRACE CALL #
  37. PROC NS$STD; # LOG NS STATISTICS #
  38. END
  39. $END
  40.  
  41. XREF
  42. BEGIN
  43. PROC NETDBG; # TURN AIP TRACE ON/OFF #
  44. PROC NETDMB; # BINARY DUMP FL/EXCHANGE PACKAGE #
  45. PROC NETREL; # RELEASE TRACE FILE ZZZZZDN #
  46. PROC NETSTC; # TURN ON/OFF STATISTICS #
  47. END
  48.  
  49. ITEM STAT U; # RETURN STATUS FROM NETIOD #
  50.  
  51. SWITCH PCMDCASE:PCMDI # CASES FOR PROGRAM CQOMMANDS #
  52. PCMD1:DU,
  53. PCMD2:NOTR,
  54. PCMD3:REL,
  55. PCMD4:RS,
  56. PCMD5:TRCE,
  57. PCMD6:DB,
  58. PCMD7:DE;
  59.  
  60. CONTROL EJECT;
  61.  
  62. $BEGIN
  63. NS$DBG("PCM"); # TRACE CALL #
  64. $END
  65.  
  66. GOTO PCMDCASE[PCMORDINAL]; # CASE ON PROGRAM COMMANDS #
  67.  
  68. PCMD1: # DUMP EXCHANGE PACKAGE/FIELD LENGTH #
  69. NETDMB(ZDMBID[0],0);
  70. ZDMBID$DN[0] = ZDMBID$DN[0] + 1; # INCREMENT DUMP NUMBER #
  71. GOTO PCMDEXIT;
  72.  
  73. PCMD2: # TURN AIP TRACE OFF #
  74. NETDBG(1,1,STAT);
  75. GOTO PCMDEXIT;
  76.  
  77. PCMD3: # RELEASE AIP TRACE FILE ZZZZZDN #
  78. $BEGIN
  79. IF MC NQ 0
  80. THEN # ZZZZZDN FILE RELEASE AUTHORIZED #
  81. NETREL(NRF2$LFN,MAX$TMSGSZ,0);
  82. $END
  83. GOTO PCMDEXIT;
  84.  
  85. PCMD4: # RESET NS STATISTICS #
  86. $BEGIN
  87. NS$STD; # LOG NS STATISTICS #
  88. NETSTC(1,STAT); # RESET AIP STATISTIC COUNTERS #
  89. NETSTC(0,STAT); # RESTART AIP STATISTIC GATHERING #
  90. $END
  91. GOTO PCMDEXIT;
  92.  
  93. PCMD5: # TURN AIP TRACE ON #
  94. NETDBG(0,1,STAT);
  95. GOTO PCMDEXIT;
  96.  
  97. PCMD6: # TURN ON IN-LINE DEBUG CODE #
  98. MODE$DEBUG = TRUE;
  99. GOTO PCMDEXIT;
  100.  
  101. PCMD7: # TERMINATE IN-LINE DEBUG CODE #
  102. MODE$DEBUG = FALSE;
  103. GOTO PCMDEXIT;
  104.  
  105. PCMDEXIT:
  106. RETURN;
  107. END # NS$PCM #
  108. TERM
1)
PCMORDINAL
cdc/nos2.source/nam5871/ns_pcm.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator