User Tools

Site Tools


cdc:nos2.source:nam5871:nvfopsc

NVFOPSC

Table Of Contents

  • [00008] PROC NVFOPSC
  • [00013] PERFORM SHUTDOWN COMMAND.
  • [00043] PROC NVFUMQE
  • [00044] PROC SSSAWR
  • [00045] PROC SSTAQE

Source Code

NVFOPSC.txt
  1. *DECK NVFOPSC
  2. USETEXT TEXTNVF
  3. USETEXT TEXTSS
  4. USETEXT TXINNVF
  5. USETEXT TXCMDNV
  6. USETEXT TXSMNVF
  7. USETEXT TXTAPSS
  8. PROC NVFOPSC;
  9. # TITLE NVFOPSC - PERFORM SHUTDOWN COMMAND. #
  10.  
  11. BEGIN # NVFOPSC #
  12. #
  13. ** NVFOPSC - PERFORM SHUTDOWN COMMAND.
  14. *
  15. * A. LIM. 82/03/22.
  16. *
  17. * THIS PROCEDURE-S MAIN FUNCTION IS TO PERFORM A HOP SHUTDOWN
  18. * COMMAND. IT IS CALLED INTO EXECUTION BY: *NVFODHC*
  19. *
  20. * PROC NVFOPSC
  21. *
  22. * ENTRY HOP COMMAND IN *WCBUF[1]*, *HDRCMD[1]*, AND *PARMS[0]*
  23. * WITH *WCBUF* DEFINED IN TEXTSS, AND *HDRCMD* AND *PARMS*
  24. * DEFINED IN TXCMDNV.
  25. *
  26. * EXIT A SH/ISD SM IS SENT TO OUTGOING-TRAFFIC-QUEUE *OTQ*,
  27. * AND A NULL TERMINAL-TEXT LINE IS SENT TO CONNECTION-
  28. * TRAFFIC-QUEUE *CTQ*.
  29. *
  30. * METHOD USE THIS HOP COMMAND-S VERB IN THE PARAMETER LIST TO
  31. * DETERMINE IF A FORCE SHUT-DOWN OF THE HOST IS REQUIRED.
  32. * BUILD SH/ISD SM WITH FORCE-SHUT-DOWN FLAG SET/NOT-SET,
  33. * AND SEND IT TO *OTQ*. BUILD A NULL TERMINAL-TEXT LINE
  34. * WITH INPUT-ALLOW-FLAG SET AND SEND IT TO *CTQ*.
  35. #
  36.  
  37.  
  38. #
  39. **** PROC NVFOPSC XREF LIST
  40. #
  41. XREF
  42. BEGIN
  43. PROC NVFUMQE; # MAKE QUEUE ENTRY #
  44. PROC SSSAWR; # SS- ACCEPT A WORKLIST REQUEST #
  45. PROC SSTAQE; # SS- ACCEPT A QUEUE ENTRY #
  46. END
  47. #
  48. ****
  49. #
  50.  
  51.  
  52. CONTROL EJECT;
  53.  
  54. ITEM I I; # LOOP INDUCTION VARIABLE #
  55. ITEM MATCH B; # LOOP EXIT VARIABLE #
  56.  
  57. # BUILD SH/ISD SM AND SEND IT TO *OTQ* #
  58.  
  59. NVFSTATE = TRUE; # INITIATE IDLE/DISABLE HOST #
  60.  
  61. SPMSG0[1] = 0; # CLEAR MESSAGE BUFFER #
  62.  
  63. IF HDR$VERB[1] EQ IDH$
  64. THEN
  65. SHISF[1] = FALSE; # IDLE HOST, NO FORCE SHUTDOWN #
  66. ELSE
  67. SHISF[1] = TRUE; # DISABLE HOST, FORCE SHUTDOWN #
  68.  
  69. WCB$WORD[1] = 0; # CLEAR WC WORD #
  70. ABHWORD[1] = 0; # CLEAR ABH WORD #
  71. WCB$WC[1] = LSH + 2; # BUILD WC WORD #
  72. ABHABT[1] = APPCMD; # BUILD ABH WORD #
  73. ABHACT[1] = CT60TRANS;
  74. ABHTLC[1] = LSH;
  75. PFCSFC[1] = SHISD;
  76. SHISAN[1] = 0; # SHUTDOWN IS FOR ALL APPLICATION #
  77. SSTAQE(P<OTQ>,WCBUF[1],ABHBUF[1],NVFSM[1]); # SEND SH/ISD TO OTQ#
  78.  
  79.  
  80. #
  81. * SEND THE COMMAND TEXT OFF TO THE NETWORK LOG FILE AND THE HISTORY
  82. * BUFFER.
  83. #
  84.  
  85. NVFUMQE(P<USQ>,PARMS[0],5,0,HDR$TXWCNT[1]*10);
  86.  
  87.  
  88.  
  89. # SEND A NULL TERMINAL-TEXT LINE TO *CTQ* #
  90.  
  91. WCB$WORD[1] = 0; # CLEAR WC WORD #
  92. ABHWORD[1] = 0; # CLEAR ABH WORD #
  93. WCB$IAF[1] = TRUE; # SET INPUT-ALLOW FLAG TRUE #
  94. WCB$WC[1] = 2;
  95. ABHABT[1] = HOPTX$;
  96. SSTAQE(P<CTQ>,WCBUF[1],ABHBUF[1],MSGBUF[0]);
  97.  
  98.  
  99. #
  100. * IF NO NETWORK APPLICATIONS EXIST, COMPLETE NVF EXECUTION.
  101. #
  102.  
  103. MATCH = FALSE;
  104. FOR I = 0 STEP 1 WHILE (NOT MATCH)
  105. AND (I LS ASTLNGTH/ASTSIZ$)
  106. DO
  107. BEGIN
  108. IF AST$AN[I] NQ 0
  109. THEN MATCH = TRUE; # STILL HAVE ACTIVE APPLICATION #
  110. END
  111.  
  112. IF NOT MATCH
  113. THEN SSSAWR(WWDF"NICNE");
  114.  
  115.  
  116. END # NVFOPSC #
  117.  
  118. TERM
cdc/nos2.source/nam5871/nvfopsc.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator