User Tools

Site Tools


cdc:nos2.source:nam5871:hcacrqa

HCACRQA

Table Of Contents

  • [00010] PRGM HCACRQA
  • [00058] PROC BLINK
  • [00059] PROC MGETS
  • [00060] PROC OSCHAPP
  • [00061] PROC XTRACE

Source Code

HCACRQA.txt
  1. *DECK HCACRQA
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT ACNB
  5. USETEXT AHEADER
  6. USETEXT AT
  7. USETEXT PT
  8. USETEXT PARAMS
  9. USETEXT SUPMSG
  10. PRGM HCACRQA ; # SEND CON/ACRQ/A TO APPLICATION #
  11. STARTIMS;
  12. #
  13. *1DC HCACRQA
  14. *
  15. * 1. PROC NAME AUTHOR DATE
  16. * HCACRQA A. BEN-ARTZI 82/05/06
  17. *
  18. * 2. FUNCTIONAL DESCRIPTION
  19. * SEND CON/ACRQ/A TO APPLICATION
  20. *
  21. * 3. METHOD USED
  22. * ALLOCATE A BUFFER FOR MESSAGE
  23. * FORMAT APPLICATION BLOCK HEADER
  24. * FORMAT THE MESSAGE USING VALUES STORED IN THE ACNB
  25. * QUEUE MESSAGE TO APPLICATION-S ACB
  26. *
  27. * 4. ENTRY PARAMETERS
  28. * PARAMS1 - REASON CODE FOR CON/ACRQ/A
  29. * PARAMS2 - ADDRESS OF ACNB
  30. *
  31. * 5. EXIT PARAMETERS
  32. * NONE
  33. *
  34. * 6. COMDECKS CALLED AND SYMPL TEXTS USED
  35. * NIPDEF ACNB AHEADER AT PT
  36. * PARAMS SUPMSG OSSIZE
  37. * ACB
  38. *
  39. * 7. ROUTINES AND OVERLAYS CALLED
  40. * MGETS - ALLOCATE A BUFFER
  41. * BLINK - QUEUE MESSAGE ON APPLICATION-S ACB
  42. * OSCHAPP - SCHEDULE APPLICATION
  43. * XTRACE - TRACE PROCEDURE CALL
  44. *
  45. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION
  46. * THIS IS A SECONDARY OVERLAY CALLED BY HCSTTP.
  47. *
  48. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE SECONDARY
  49. *CALL OSSIZE
  50. *
  51.  #
  52. STOPIMS;
  53. #
  54.   EXTERNAL VARIABLES
  55. #
  56. XREF
  57. BEGIN
  58. PROC BLINK ; # LINK MESSAGE ON APPLICATION"S ACB #
  59. PROC MGETS ; # ALLOCATE A BUFFER #
  60. PROC OSCHAPP; # SCHEDULE APPLICATION #
  61. PROC XTRACE; # DEBUG TRACE CALL #
  62. LABEL RJMAIN;
  63. END
  64. #
  65.   INTERNAL VARIABLES
  66. #
  67. DEF X25RC # 214 #; # REASON CODE X"D6" FOR X25 TROUBLE #
  68. ITEM BUFADDR ; # HOLD SM BUFFER ADDRESS #
  69. #**********************************************************************#
  70. BEGIN
  71. CONTROL IFEQ DEBUG,1 ;
  72. XTRACE("ACRQA") ;
  73. CONTROL FI ;
  74. #
  75.   ALLOCATE BUFFER
  76. #
  77. MGETS( LCONACA + BLKHSIZE + ABHSIZE,BUFADDR,TRUE) ;
  78. #
  79.   SET APPLICATION BLOCK HEADER
  80. #
  81. P<AHEADER> = BUFADDR + BLKHSIZE ;
  82. ABHABT[0] = APPCMD ;
  83. ABHACT[0] = CT60TRANS;
  84. ABHTLC[0] = LCONACA ;
  85. #
  86.   SET THE MESSAGE
  87. #
  88. P<SUPMSG> = BUFADDR + BLKHSIZE + ABHSIZE ;
  89. PFCSFC[0] = CONACRA ;
  90. IF PARAMS1 EQ RCCB"LLF" # IF REASON CODE OBTAINED FROM CRCB #
  91. THEN
  92. BEGIN
  93. CONRAC[0] = RCIA"NLL"; # MAP TO REASON CODE H"23" #
  94. END
  95. ELSE
  96. BEGIN
  97. IF PARAMS1 EQ RCCB"I" # IF REASON CODE IS 9 FROM TCNTA #
  98. THEN # WHICH IS THEN COPYIED TO CRCB #
  99. BEGIN
  100. CONRAC[0] = X25RC; # MAP TO 214 AS X.25 PROBLEM #
  101. END
  102. ELSE
  103. BEGIN
  104. CONRAC[0] = PARAMS1 ; # REASON CODE FOR ABNORMAL #
  105. END
  106. END
  107. P<ACNB> = PARAMS2 ; # BASE ACNB #
  108. CONANM[0] = ACNBANM[0] ; # NAME OF APPLICATION FROM CON/ACRQ/R #
  109. CONHID[0] = ACNBHID[0] ; # HOST DESTINATION #
  110. CONAABN[0] = ACNBABN[0]; # APPLICATION BLOCK NUMBER #
  111. #
  112.   AND QUEUE IT TO THE APPLICATION"S ACB
  113. #
  114. P<ACB> = ATACBA[ACNBIAN]; # ADDRESS OF ACB #
  115. BLINK(BUFADDR,P<ACB>); # QUEUE SUP MSG TO ACB #
  116. OSCHAPP(P<ACB>); # SWAPIN APPLICATION #
  117. ACBERCNT[0] = ACBERCNT[0] + 1; # INCRE CNT OF CON/ACRQ/A QUEUED#
  118. GOTO RJMAIN ;
  119. END
  120. TERM
cdc/nos2.source/nam5871/hcacrqa.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator