User Tools

Site Tools


cdc:nos2.source:nam5871:hchgict

HCHGICT

Table Of Contents

  • [00013] PRGM HCHGICT

Source Code

HCHGICT.txt
  1. *DECK HCHGICT
  2. USETEXT ACB
  3. USETEXT ACNB
  4. USETEXT ACNT
  5. USETEXT NCNB
  6. USETEXT NIPDEF
  7. USETEXT APPSTAT
  8. USETEXT AWLNTRY
  9. USETEXT DEQCOM
  10. USETEXT OVERLAY
  11. USETEXT PARAMS
  12. USETEXT SUPMSG
  13. PRGM HCHGICT; # CHANGE INPUT CHARACTER TYPE FOR ACNB #
  14.  
  15. STARTIMS;
  16. #
  17. *1DC HCHGICT
  18. *
  19. * 1. PROC NAME AUTHOR DATE
  20. * HCHGICT A. M. PRATT 75/10/10
  21. *
  22. * 2. FUNCTIONAL DESCRIPTION.
  23. * THIS ROUTINE IS RESPONSIBLE FOR CHANGING A ACNB-S INPUT
  24. * CHARACTER TYPE. PROCESS A DC/CICT.
  25. *
  26. * 3. METHOD USED.
  27. * LOCATE THE ACNB. IF NOT FOUND, THEN ISSUE ERR/LGL.
  28. * ELSE LOCATE THE NCNB. VALIDATE THE APPLICATON
  29. * CHARACTER TYPE.
  30. * DT = 5 (INTRA-HOST) ACT = 1,2,3
  31. * DT = 6 (INTER-HOST) ACT =2,3
  32. * DT = 0 (T-A) ACT = 2,3,4
  33. * SET THE INPUT CHARACTER TYPE, SYNCHRONOUS COMMAND IN
  34. * ASCII12 FLAG AND NO TRANSPARENT DATA FLAG
  35. * IN NCNB.
  36. *
  37. * 4. ENTRY PARAMETERS.
  38. * DCACN (DATA CONTROL) APP CONNECTION NUMBER
  39. * DCACT (DATA CONTROL) APP CHARACTER TYPE
  40. * ACBADDR CURRENT APPLICATION"S ACB
  41. * WLADDR CURRENT WORKLIST ENTRY
  42. *
  43. * 5. EXIT PARAMETER.
  44. * NONE
  45. *
  46. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  47. * ACB ACNB ACNT APPSTAT NCNB
  48. * NIPDEF OPSIZE OVERLAY PARAMS SUPMSG
  49. *
  50. * 7. ROUTINES CALLED.
  51. * HLGLERR OVL REJECT MSG AND SEND LGL/ERR TO APPL
  52. * OVLCALL LOAD AND EXECUTE OVERLAY
  53. * XTRACE TRACES CALLS
  54. *
  55. * 8. DAYFILE MESSAGES. NONE
  56. *
  57. * THIS PROGRAM IS A PRIMARY OVERLAY LOADED BY SUBROUTINE OVLCALL.
  58. * WHEN EXECUTION HAS COMPLETED, A JUMP IS MADE TO LOCATION RJMAIN
  59. * TO RETURN TO THE CALLING PROGRAM.
  60. *
  61. * W A R N I N G - THIS PROGRAM CANNOT EXCEED THE PRIMARY OVERLAY
  62. *CALL OPSIZE
  63. *
  64. * THIS OVERLAY IS CALLED BY HPPUT.
  65. *
  66.  #
  67. STOPIMS;
  68. #
  69.   EXTERNAL VARIABLES
  70. #
  71.  
  72. XREF PROC OVLCALL; # LOAD AND EXECUTE OVERLAY #
  73. XREF PROC XTRACE;
  74. XREF LABEL RJMAIN; # RETURN ADDRESS IN OVLCALL #
  75.  
  76. #
  77.   INTERNAL VARIABLES
  78. #
  79.  
  80.  
  81. #**********************************************************************#
  82. BEGIN
  83. CONTROL IFEQ DEBUG,1 ;
  84. XTRACE("HCHGI") ;
  85. CONTROL FI;
  86.  
  87. P<SUPMSG> = WLADDR + HDRSIZE; # TEXT ADDRESS #
  88.  
  89. # LOCATE THE ACNB #
  90.  
  91. P<ACB> = ACBADDR;
  92. P<ACNT> = ACBACNT[0];
  93. P<ACNB> = ACNTACNB[DCACN[0] + ACNTHSIZE - ACNTMINACN[0]];
  94. IF P<ACNB> NQ 0
  95. THEN
  96. BEGIN
  97. P<NCNB> = ACNBNCNB[0]; # NCNB ADDRESS #
  98. IF P<NCNB> NQ 0 AND
  99. (DCACT[0] LS CT60TRANS
  100. OR DCACT[0] GQ ACTMAX
  101. OR (NCNBDT[0] EQ DT$INTE AND
  102. NOT (DCACT[0] EQ CT8ASCII OR DCACT[0] EQ CT12ASCII))
  103. OR (NCNBDT[0] EQ DT$INTA AND DCACT EQ CT6DISPLAY)
  104. OR (NCNBID[0] EQ NCNBIDVALUE AND NOT NCNBAA[0]
  105. AND DCACT[0] EQ CT60TRANS))
  106. THEN
  107. #
  108.   DT = 5 INTRA HOST ACT MUST BE 1,2 OR 3
  109.   DT = 6 INTER HOST ACT MUST BE 2 OR 3
  110.   T-A CONNECTION ACT MUST BE 2,3 OR 4
  111.   #
  112. BEGIN
  113. PARAMS1 = RLG"IA"; # ILLEGAL ACT #
  114. GOTO ERREXIT;
  115. END
  116.  
  117. # STORE NEW ACT IN ACNB #
  118.  
  119. ACNBICT = DCACT[0]; # NEW INPUT CHARACTER TYPE #
  120. ACNBSCT[0] = DCSCT[0] ; # SYN. CHAR TYPE #
  121. ACNBNXP[0] = DCNXP[0] ; # NO TRANS. DATA INDICATOR #
  122. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  123. END
  124. ELSE
  125. PARAMS1 = RLG"ACN"; # REASON CODE - BAD ACN #
  126.  
  127. ERREXIT:
  128. OVLNAME = HLGLERRP; # SEND LOGICAL ERROR MSG TO APPL #
  129. OVLCALL;
  130.  
  131. GOTO RJMAIN; # RETURN TO CALLING PROGRAM #
  132.  
  133. END
  134. TERM
cdc/nos2.source/nam5871/hchgict.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator