User Tools

Site Tools


cdc:nos2.source:nam5871:dlabh

Table of Contents

DLABH

Table Of Contents

  • [00008] PROC DLABH
  • [00070] PROC DLABEND
  • [00071] PROC DLDFM

Source Code

DLABH.txt
  1. *DECK DLABH
  2. USETEXT DLFPDEF
  3. USETEXT ABH
  4. USETEXT DIRTBLH
  5. USETEXT ERRMSG
  6. USETEXT OUTCDA
  7. USETEXT ZHRCD
  8. PROC DLABH; # SELECT APPLICATION BLOCK HEADER #
  9.  
  10. *IF DEF,IMS
  11. #
  12. *1DC DLABH
  13. *
  14. * 1. PROC NAME AUTHOR DATE
  15. * DLABH P.C.TAM 79/01/10
  16. *
  17. * 2. FUNCTIONAL DESCRIPTION
  18. * SELECT APPLICATION BLOCKS FOR OUTPUT
  19. *
  20. * 3. METHOD USED
  21. * LOOP THROUGH APPLICATION BLOCK PROCESSING TABLE, PROCESS
  22. * EACH ENTRY AS FOLLOWS UNTIL EITHER THE CHOSEN FLAG IS CLEARED
  23. * OR ALL ENTRIES PROCESSED.
  24. * B IF BREAK FLAG IN ABH WORD IS NOT SET, CLEAR
  25. * CHOSEN FLAG
  26. * C IF CANCEL FLAG IN ABH WORD IS NOT SET, CLEAR
  27. * CHOSEN FLAG
  28. * F IF NO FORMAT EFFECTOR IN ABH WORD IS NOT SET,
  29. * CLEAR CHOSEN FLAG
  30. * P IF PARITY/AUTO INPUT FLAG IS NOT SET, CLEAR
  31. * CHOSEN FLAG
  32. * T IF TRUNCATED DATA FLAG IS NOT SET, CLEAR
  33. * CHOSEN FLAG
  34. * U IF IBU FLAG IS NOT SET, CLEAR CHOSEN FLAG.
  35. * X IF TRANSPARENT DATA FLAG IS NOT SET, CLEAR
  36. * CHOSEN FLAG
  37. * CN IF CN IN MESSAGE IS NOT ZERO AND IT DOES NOT
  38. * MATCH ONE IN PROCESSING TABLE, CLEAR CHOSEN
  39. * FLAG.
  40. *
  41. * 4. ENTRY PARAMETERS
  42. * DIRTBLH COMMON BLOCK CONTAINING THE SELECTION
  43. * CRITERION
  44. * ZHRCD COMMON BLOCK CONTAINING THE INPUT
  45. * RECORD HEADER
  46. *
  47. * 5. EXIT PARAMETERS
  48. * CHOSEN IN ZHRCD COMMON DECK, CLEARED IF
  49. * RECORD NOT SELECTED
  50. *
  51. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  52. * ABH DIRTBLH DLFPDEF ERRMSG
  53. * OUTCDA ZHRCD
  54. *
  55. * 7. ROUTINES CALLED.
  56. * DLABEND ABORT PROGRAM
  57. * DLDFM ISSUE DAYFILE MESSAGE
  58. *
  59. * 8. DAYFILE MESSAGES
  60. * BAD DIRECTIVE TABLE ENTRY
  61. *
  62. *
  63.  #
  64. *ENDIF
  65. #
  66.   EXTERNAL VARIABLES
  67. #
  68. XREF
  69. BEGIN
  70. PROC DLABEND; # ABORT PROGRAM #
  71. PROC DLDFM; # ISSUE DAYFILE MESSAGE #
  72. END
  73.  
  74. #
  75.   INTERNAL VARIABLES
  76. #
  77. SWITCH CRIT
  78. ERR,
  79. ERR, ERR, ERR, ERR, ERR, ERR,
  80. L$B, L$C, L$F, L$P, L$T, L$U, L$X, ERR,
  81. ERR, L$CN, ERR, ERR, ERR, ERR, ERR, ERR;
  82.  
  83. ITEM
  84. I; # TEMPORARY VARIABLE #
  85. # ******************************************************************** #
  86. BEGIN
  87. #
  88.   THE ABH IS IN THE 4TH WORD OF ARRAY TEMPB1 IN COMMON BLOCK
  89.   ZHRCD. RTIME(IN ZHWD0), OPCODE, AND TA WORDS PRECEDE THE ABH.
  90. #
  91. P<ABH> = LOC(ZHWD3[0]);
  92. FOR I = 1 STEP 1 WHILE CHOSEN AND I LQ DIRNUMH
  93. DO
  94. BEGIN
  95. GOTO CRIT[DIRHID[I]];
  96. L$B: # BREAK FLAG PROCESSING #
  97. IF ABHBRK[0] NQ 1
  98. THEN
  99. CHOSEN = FALSE;
  100. GOTO NEXT;
  101. L$C: # CANCEL BIT PROCESSING #
  102. IF ABHCAN[0] NQ 1
  103. THEN
  104. CHOSEN = FALSE;
  105. GOTO NEXT;
  106. L$F: # NO FORMAT EFFECTOR PROCESSING #
  107. IF ABHNFE[0] NQ 1
  108. THEN
  109. CHOSEN = FALSE;
  110. GOTO NEXT;
  111. L$P: # PARITY/AUTO INPUT FLAG PROCESSING #
  112. IF ABHBIT[0] NQ 1
  113. THEN
  114. CHOSEN = FALSE;
  115. GOTO NEXT;
  116. L$T: # TRUNCATED DATA FLAG PROCESSING #
  117. IF ABHTRU[0] NQ 1
  118. THEN
  119. CHOSEN = FALSE;
  120. GOTO NEXT;
  121. L$U: # IBU BIT PROCESSING #
  122. IF ABHIBU[0] NQ 1
  123. THEN
  124. CHOSEN = FALSE;
  125. GOTO NEXT;
  126. L$X: # TRANSPARENT BIT PROCESSING #
  127. IF ABHXPT[0] NQ 1
  128. THEN
  129. CHOSEN = FALSE;
  130. GOTO NEXT;
  131. L$CN: # CONNECTION NUMBER PROCESSING #
  132. IF ABHADR[0] NQ 0 AND
  133. ABHADR[0] NQ DIRHVAL[I]
  134. THEN
  135. CHOSEN = FALSE;
  136. GOTO NEXT;
  137. ERR:
  138. DLDFM(BAD$DNTRY); # BAD DIRECTIVE TABLE ENTRY #
  139. DLABEND; # ABORT PROGRAM #
  140. NEXT:
  141. END
  142. END
  143. TERM
cdc/nos2.source/nam5871/dlabh.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator