User Tools

Site Tools


cdc:nos2.source:nam5871:hlonoff

HLONOFF

Table Of Contents

  • [00011] PRGM HLONOFF

Source Code

HLONOFF.txt
  1. *DECK HLONOFF
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT ACNB
  5. USETEXT ACNT
  6. USETEXT APPSTAT
  7. USETEXT AT
  8. USETEXT OVERLAY
  9. USETEXT PARAMS
  10. USETEXT SUPMSG
  11. PRGM HLONOFF; # TOGGLE LIST ON/OFF IN ACNB #
  12.  
  13. STARTIMS;
  14. #
  15. *1DC HLONOFF
  16. *
  17. * 1. PROC NAME AUTHOR DATE
  18. * HLONOFF A. M. PRATT 75/10/15
  19. *
  20. * 2. FUNCTIONAL DESCRIPTION.
  21. * THIS ROUTINE LOCATES THE ACNB WITH THE ACN NAMED IN THE SUPER-
  22. * VISORY MESSAGE AND SETS THE TOGGLE FIELD -ON- OR -OFF-
  23. * ACCORDING TO THE MESSAGE.
  24. *
  25. * 3. METHOD USED.
  26. * LOCATE THE ACNB OF THE APPLICATION. TOGGLE THE
  27. * ACNB LST FLAG.
  28. *
  29. * 4. ENTRY PARAMETERS.
  30. * ACBADDR CURRENT APPLICATION"S ACB
  31. * WLADDR ADDRESS OF THE CURRENT WORKLIST REQUEST
  32. *
  33. * 5. EXIT PARAMETERS.
  34. *
  35. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  36. * ACB ACNB ACNT
  37. * APPSTAT LST NIPDEF
  38. * OPSIZE SUPMSG
  39. *
  40. * 7. ROUTINES CALLED.
  41. * HUPDDAW UPDATE DATA AVAILABLE WORD
  42. * XTRACE TRACES CALLS
  43. *
  44. * 8. DAYFILE MESSAGES. NONE
  45. *
  46. * THIS PROGRAM IS A PRIMARY OVERLAY LOADED BY SUBROUTINE OVLCALL.
  47. * WHEN EXECUTION HAS COMPLETED, A JUMP IS MADE TO LOCATION RJMAIN
  48. * TO RETURN TO THE CALLING PROGRAM.
  49. *
  50. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE PRIMARY
  51. *CALL OPSIZE
  52. *
  53. * THIS OVERLAY IS CALLED BY HPPUT.
  54. *
  55.  #
  56. STOPIMS;
  57. #
  58.   EXTERNAL VARIABLES
  59. #
  60.  
  61. XREF PROC HUPDDAW; # UPDATE DATA AVAILABLE WORD #
  62. XREF PROC OVLCALL; # LOAD AND EXECUTE OVERLAY #
  63. XREF PROC XTRACE;
  64. XREF LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  65.  
  66. #
  67.   INTERNAL VARIABLES
  68. #
  69. ITEM ACNBADDR; # ACNB ADDRESS #
  70. ITEM OLDLO B ; # OLD FLAG OF LO #
  71. ITEM OLDTLO B; # PREVIOUS VALUE OF TEMP LIST OFF FLAG #
  72.  
  73.  
  74. #**********************************************************************#
  75.  
  76. BEGIN
  77. CONTROL IFEQ DEBUG,1 ;
  78. XTRACE("HLONO") ;
  79. CONTROL FI;
  80.  
  81. P<SUPMSG> = WLADDR + AIPHSIZE + ABHSIZE; # ADDR OF LST/ON/OFF SM#
  82.  
  83. # LOCATE ACNB #
  84.  
  85. P<ACB> = ACBADDR;
  86. P<ACNT> = ACBACNT[0];
  87. ACNBADDR = ACNTACNB[LSTACN[0] + ACNTHSIZE - ACNTMINACN[0]];
  88.  
  89.  
  90. # UPDATE LIST FLAG ACCORDING TO ON OR OFF MSG #
  91. P<ACNB> = ACNBADDR;
  92. OLDLO = ACNBLO[0] ;
  93. OLDTLO = ACNBTLO[0]; # PREVIOUS VALUE OF TEMP LIST OFF FLAG #
  94.  
  95. IF PFCSFC[0] EQ LSTON
  96. THEN
  97. BEGIN
  98. ACNBLO[0] = FALSE; # CLEAR LIST OFF FLAG IN ACNB #
  99. ACNBTLO[0] = FALSE; # CLEAR TMP LIST OFF FLG IN ACNB#
  100. IF (OLDLO ) OR # CONNECTION PREVIOUSLY IN LIST OFF STATE #
  101. (OLDTLO) # CONNECTION PREVIOUSLY IN TEMP LIST OFF #
  102. THEN
  103. BEGIN
  104. HUPDDAW(P<ACB>,P<ACNB>,0,ACNBBLKSQ[0]);
  105. END
  106.  
  107. END
  108. ELSE
  109. BEGIN # LIST OFF RECIEVED #
  110. IF NOT OLDLO
  111. THEN
  112. BEGIN
  113. HUPDDAW(P<ACB>,P<ACNB>,0,-ACNBBLKSQ[0]);
  114. END
  115.  
  116. ACNBLO[0] = TRUE ;
  117. END # LIST OFF RECIEVED #
  118.  
  119. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  120. END
  121. TERM
cdc/nos2.source/nam5871/hlonoff.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator