User Tools

Site Tools


cdc:nos2.source:nam5871:nvfaswn

NVFASWN

Table Of Contents

  • [00004] PROC NVFASWN( ACNN )
  • [00005] NVFASWN - PROCESS CR/SWH/N SM
  • [00008] PROCESS CR/SWH/N SMS FOR A-A.
  • [00033] PROC ABORT
  • [00034] PROC MESSAGE

Source Code

NVFASWN.txt
  1. *DECK NVFASWN
  2. USETEXT TEXTNVF
  3. USETEXT TXSMNVF
  4. PROC NVFASWN( ACNN );
  5. # TITLE NVFASWN - PROCESS CR/SWH/N SM #
  6. BEGIN # NVFASWN #
  7. #
  8. ** NVFASWN - PROCESS CR/SWH/N SMS FOR A-A.
  9. *
  10. * P. A. MURRAY 84/05/09
  11. *
  12. * THE PURPOSE OF THIS PROCEDURE IS TO PROCESS THE CR/SWH/N SMS.
  13. * THE NVF CONNECTION NUMBER IN THE PAAC ENTRY MUST BE ZEROED OUT
  14. * IN CASE THE APPL SHOULD FAIL BEFORE NVF RECEIVES THE CR/ACC. THIS
  15. * IS NEEDED TO PREVENT NVF FROM ISSUING A CR/TRM FOR THE PAAC, SINCE
  16. * THE ACN WILL HAVE BEEN RELEASED.
  17. *
  18. * PROC NVFASWN ( ACNN )
  19. *
  20. * ENTRY:
  21. * ACNN = APPLICATION CONNECTION NUMBER FROM THE CR/SWH/N.
  22. *
  23. * EXIT:
  24. * PA$NACN IS SET TO ZERO IF THE PAAC ENTRY WAS FOUND.
  25. #
  26.  
  27. #
  28. **** PROC NVFASWN XREF LIST
  29. #
  30.  
  31. XREF
  32. BEGIN
  33. PROC ABORT; # ABORT NVF #
  34. PROC MESSAGE; # ISSUE MESSAGE TO DAYFILE #
  35. END
  36.  
  37. #
  38. ****
  39. #
  40.  
  41. ITEM ACNN I; # APPL CONNECTION NUMBER #
  42. ITEM NENTRY I; # NUMBER OF PAAC ENTRIES #
  43. ITEM PAC I; # PAAC ENTRY INDEX #
  44.  
  45.  
  46.  
  47. #
  48. * **** PROC NVFASWN ENTRY START ****
  49. #
  50.  
  51. #
  52. * LOCATE THE PAAC ENTRY WITH THE SAME ACN AS IN THE CR/SWH/N SM.
  53. #
  54. NENTRY = PACLNGTH / PAACSIZ$;
  55. FOR PAC = 0 STEP 1 WHILE
  56. ((PAC LS NENTRY) AND
  57. (PA$NACN[PAC] NQ ACNN))
  58. DO
  59. BEGIN
  60. END
  61.  
  62. #
  63. * IF PAAC ENTRY NOT FOUND, MERELY RETURN WITH NO ACTION TAKEN. AT
  64. * THIS POINT IT IS ASSUMED THAT THE REQUESTING APPLICATION HAS
  65. * FAILED AND AS A RESULT ALL IS TAKEN CARE OF ALREADY.
  66. #
  67. IF PAC EQ NENTRY
  68. THEN
  69. BEGIN
  70. RETURN; # **** RETURN **** #
  71. END
  72. ELSE
  73. #
  74. * IF PAAC ENTRY FOUND, ZERO OUT THE NVF CONNECTION NUMBER. THIS
  75. * PREVENTS NVF FROM ISSUING A CR/TRM FOR THIS PAAC IN CASE THE APPL
  76. * SHOULD FAIL BEFORE NVF RECEIVES THE CR/ACC. THE CR/TRM SHOULD NOT
  77. * BE ISSUED BECAUSE THE ACN ENTRY WILL ALREADY BE DELETED.
  78. #
  79. BEGIN
  80. PA$NACN[PAC] = 0;
  81. END
  82.  
  83. END # NVFASWN #
  84. TERM
cdc/nos2.source/nam5871/nvfaswn.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator