User Tools

Site Tools


cdc:nos2.source:nam5871:xendnam

XENDNAM

Table Of Contents

  • [00008] PRGM XENDNAM
  • [00059] PROC OMSG
  • [00060] PROC OSCEXIT
  • [00061] PROC OVLCALL
  • [00062] PROC XCLOST
  • [00063] PROC XDROP
  • [00064] PROC XTERMST
  • [00065] PROC XTRACE

Source Code

XENDNAM.txt
  1. *DECK XENDNAM
  2. USETEXT NIPDEF
  3. USETEXT FREETAB
  4. USETEXT BPIPBUF
  5. USETEXT MSGIDX
  6. USETEXT OVERLAY
  7. USETEXT PARAMS
  8. PRGM XENDNAM; # COMPLETE NAM SHUTDOWN #
  9.  
  10. STARTIMS;
  11. #
  12. *1DC XENDNAM
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * XENDNAM P.C.TAM 80/02/12
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION.
  18. * THIS ROUTINE IS RESPONSIBLE FOR PROCESSING A NORMAL TERMINATION
  19. * OF THE NETWORK.
  20. *
  21. * 3. METHOD USED.
  22. * LOADS OSCEXIT
  23. * ISSUES DAYFILE MESSAGE
  24. * CALL XDROP
  25. *
  26. * 4. ENTRY PARAMETERS. NONE
  27. *
  28. * 5. EXIT PARAMETERS. NONE
  29. *
  30. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  31. * BPIPBUF MSGIDX NIPDEF OPSIZE
  32. *
  33. * 7. ROUTINES AND OVERLAYS CALLED.
  34. * OSCEXIT TERMINATE SYS CONTROL POINT
  35. * OMSG ISSUE DAYFILE MESSAGE
  36. * XCLOST CLOSE ZZZZZDN FILE
  37. * XDROP SET PIP DROP FLAG AND TERMINATE
  38. * XTERMST LOG STATISTICS
  39. * XTRACE RECORD CALL
  40. *
  41. * 8. DAYFILE MESSAGES.
  42. * *NIP SHUTDOWN COMPLETE.* NIP ISSUES THIS FINAL MESSAGE
  43. * JUST BEFORE IT STOPS.
  44. *
  45. * W A R N I N G - THIS PROGRAM IS LOADED TOGETHER WITH
  46. * OSCEXIT, XTERMST, AND XCLOST. THE SUM OF
  47. * THEIR SIZES CANNOT EXCEED THE PRIMARY
  48. *CALL OPSIZE
  49. *
  50. * THIS OVERLAY IS CALLED BY XEXEC.
  51. *
  52.  #
  53. STOPIMS;
  54. #
  55.   EXTERNAL VARIABLES
  56. #
  57. XREF
  58. BEGIN
  59. PROC OMSG ;
  60. PROC OSCEXIT; # EXIT FROM SCP #
  61. PROC OVLCALL; # LOAD OVERLAY #
  62. PROC XCLOST; # CLOSE ZZZZZDN FILE #
  63. PROC XDROP; # DROP PIP (AND NIP) #
  64. PROC XTERMST; # LOG STATISTICS #
  65. PROC XTRACE; # TRACE CALL FIELD LENGTH #
  66. END
  67. #
  68.   LOCAL VARIABLES
  69. #
  70. #**********************************************************************#
  71.  
  72. BEGIN
  73. CONTROL IFEQ DEBUG,1 ;
  74. XTRACE("XENDN") ;
  75. CONTROL FI;
  76. # NAMA293
  77.   EXIT FROM SYS-CTRL-PT STATUS NAMA293
  78. # NAMA293
  79. OSCEXIT; # EXIT FROM SYS CONTROL POINT #
  80. 021400
  81. CONTROL IFEQ STAT,1; 021500
  82. XTERMST; # LOG STATISTICS #
  83. CONTROL FI; 021800
  84. 021900
  85.  
  86. CONTROL IFEQ ZZDN,1;
  87. XCLOST(BPFET); # CLOSE ZZZZZDN TRACE FILE #
  88. CONTROL FI;
  89.  
  90. OMSG(DFMSG21,0) ;
  91. #
  92.   TERMINATE GRACEFULLY
  93. #
  94. XDROP; # SET DROP-PIP FLAG AND *** STOP*** #
  95. END
  96. TERM
cdc/nos2.source/nam5871/xendnam.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator