User Tools

Site Tools


cdc:nos2.source:nam5871:hbsmabh

HBSMABH

Table Of Contents

  • [00010] PROC HBSMABH(NEXTLEN)
  • [00053] PROC XTRACE
  • [00054] PROC OVLCALL

Source Code

HBSMABH.txt
  1. *DECK HBSMABH
  2. USETEXT NIPDEF
  3. USETEXT ACB
  4. USETEXT APPSTAT
  5. USETEXT DUMPFLG
  6. USETEXT MSGIDX
  7. USETEXT NWLNTRY
  8. USETEXT OVERLAY
  9. USETEXT PARAMS
  10. PROC HBSMABH(NEXTLEN); # BUILD NEW SUP MSG APPLICATION BLK HDR #
  11.  
  12. STARTIMS;
  13. #
  14. *1DC HBSMABH
  15. *
  16. * 1. PROC NAME AUTHOR DATE
  17. * HBSMABH E. GEE 77/08/03
  18. *
  19. * 2. FUNCTIONAL DESCRIPTION.
  20. * COMPUTE LENGTH IN WORDS OF SUP MSG
  21. *
  22. * 3. METHOD USED.
  23. * COMPUTE LENGTH BASED ON CHAR TYPE OF MSG
  24. *
  25. * 4.ENTRY PARAMETERS.
  26. * ACBADDR ADDR OF ACB CONTAINING SUP MSG IN DATA RING
  27. *
  28. * 5. EXIT PARAMETERS.
  29. * NEXTLEN LENGTH OF SUP MSG
  30. *
  31. * 6. COMDECKS CALLED AND SYMPL TEXTS USED.
  32. * APPSTAT DUMPFLG MSGIDX
  33. * NIPDEF NWLNTRY OVERLAY PARAMS
  34. * ACB
  35. *
  36. * 7. ROUTINES AND OVERLAYS CALLED.
  37. * OVLCALL LOAD AND EXECUTE OVERLAY
  38. * XERRMSG OVL ISSUE ERROR DAYFILE MESSAGE
  39. * XTRACE RECORD PROCEDURE CALLS
  40. *
  41. * 8. DAYFILE MESSAGES AND OTHER IMPORTANT INFORMATION.
  42. * NIP FATAL ERROR PROC=HBSM. THIS MESSAGE IS ISSUED IF THE
  43. * CHARACTER TYPE IS NOT 8 BIT ASCII OR 60 BIT TRANSPARENT.
  44. * THIS PROCEDURE IS CALLED BY HPGETSM.
  45. *
  46.  #
  47. STOPIMS;
  48. #
  49.   EXTERNAL VARIABLES
  50. #
  51. XREF
  52. BEGIN
  53. PROC XTRACE;
  54. PROC OVLCALL;
  55. END
  56. #
  57.   INTERNAL VARIABLES
  58. #
  59. ITEM TEMP;
  60.  
  61. # OUTPUT PARAMETERS #
  62. ITEM NEXTLEN;
  63. ITEM PNAME C(10) = "HBSM";
  64.  
  65.  
  66. #**********************************************************************#
  67.  
  68. BEGIN
  69.  
  70. CONTROL IFEQ DEBUG,1;
  71. XTRACE("HBSMA") ;
  72. CONTROL FI;
  73.  
  74. P<ACB> = ACBADDR;
  75. P<NWLENTRY> = ACBDRFP[0];
  76. TEMP = NWLACT[0];
  77. IF TEMP EQ CT8ASCII
  78. THEN # 8 BIT ASCII - 7 1/2 CHARS PER WORD #
  79. BEGIN
  80. NEXTLEN = (2 * NWLTLC[0] + 14) / 15;
  81. END
  82. ELSE
  83. BEGIN
  84. IF TEMP EQ CT60TRANS
  85. THEN # 60 BIT TRANSPARENT - 1 CHAR PER WORD #
  86. NEXTLEN = NWLTLC[0];
  87. ELSE
  88. BEGIN
  89. DMPFLG = DHBSMAB1; # STORE REASON CODE FOR DUMPING FL #
  90. PARAMS1 = DFMSG01; # *NIP FATAL ERROR PROC=XXXX.* #
  91. PARAMS6 = PNAME; # PROC NAME = HBSM #
  92. OVLNAME = XERRMSGP;
  93. OVLCALL;
  94. END
  95. END
  96. NEXTLEN = NEXTLEN + ABHSIZE ;
  97. RETURN;
  98. END
  99. TERM
cdc/nos2.source/nam5871/hbsmabh.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator