Table of Contents

CMDUMP

Table Of Contents

  • [00006] CMDUMP - DUMP CENTRAL MEMORY / DATA BUFFERS.
  • [00018] PRODUCT SET INTERFACE TO DUMP A TASKS CENTRAL

Source Code

CMDUMP.txt
  1. IDENT CMDUMP
  2.  
  3. ENTRY CMDUMP
  4. ENTRY KPOINT
  5.  
  6. TITLE CMDUMP - DUMP CENTRAL MEMORY / DATA BUFFERS.
  7. *COMMENT CMDUMP - DUMP CENTRAL MEMORY.
  8. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1992.
  9. CMDUMP SPACE 4,10
  10. ***** CMDUMP - DUMP CENTRAL MEMORY / DATA BUFFERS.
  11. * A. J. KOMOR 72/07/24.
  12. * J. R. HOGUE 72/10/05.
  13. * B. C. ANTIN 78/03/08.
  14. SPACE 4
  15. *CALL COMKMAC
  16. *CALL COMSPRD
  17. CMDUMP SPACE 4,90
  18. *** CMDUMP - PRODUCT SET INTERFACE TO DUMP A TASKS CENTRAL
  19. * MEMORY, EXCHANGE PACKAGE, AND/OR DATA MANAGER
  20. * BUFFERS.
  21. *
  22. * *CMDUMP* WILL FORMAT A REQUEST TO THE TRANSACTION FACILITY
  23. * TO DUMP THE DESIRED TASK RELATED FIELD LENGTH, EXCHANGE
  24. * PACKAGE, AND/OR DATA MANAGER BUFFERS. IF A GIVEN
  25. * PARAMETER IS NEGATIVE, THE DEFAULT VALUE WILL BE
  26. * OBTAINED FROM THE PREVIOUS *DSDUMP* REQUEST
  27. * (IF ONE WAS GIVEN) OTHERWISE THE DEFAULT
  28. * VALUE WILL BE OBTAINED FROM THE GENERAL TRANSACTION
  29. * FACILITY DEFAULT VALUES ESTABLISHED AT INITIALIZATION OR
  30. * CHANGED BY K-DISPLAY COMMANDS.
  31. *
  32. * CALL FORMAT -
  33. *
  34. * COBOL -
  35. *
  36. * ENTER CMDUMP USING FWA,LWA,EP,DB,OQ,QD,FILE1, ... FILEN.
  37. *
  38. *
  39. * FORTRAN EXTENDED -
  40. *
  41. * CALL CMDUMP(FWA,LWA,EP,DB,OQ,QD,FILE1,...FILEN)
  42. *
  43. *
  44. * PARAMETER DEFINITIONS -
  45. *
  46. * FOR ALL PARAMETERS EXCEPT *QD* USE COMP-1 FOR COBOL AND
  47. * INTEGER FOR FORTRAN.
  48. *
  49. * FWA BEGINNING ADDRESS, LEGAL VALUES:
  50. * FWA .LT. FL
  51. * IF NEGATIVE (BIT 17 SET) USE DEFAULT
  52. *
  53. * LWA LAST WORD ADDRESS, LEGAL VALUES:
  54. * FWA .LT. LWA
  55. * =0, IMPLIES NO DUMP OF FIELD LENGTH
  56. * IF NEGATIVE (BIT 17 SET) USE DEFAULT
  57. *
  58. * EP EXCHANGE PACKAGE, LEGAL VALUES:
  59. * =0, OPTION NOT DESIRED
  60. * "0, SELECT OPTION
  61. * IF NEGATIVE (BIT 59 SET) USE DEFAULT
  62. *
  63. * DB DATA BUFFERS DUMP, LEGAL VALUES:
  64. * =0, OPTION NOT DESIRED
  65. * "0, SELECT OPTION
  66. * IF NEGATIVE (BIT 59 SET) USE DEFAULT
  67. *
  68. * OQ OUTPUT QUEUE, LEGAL VALUES:
  69. * =0, DUMP TO BATCH PRINTER
  70. * =1, DUMP TO E/I 200
  71. * =2, DUMP TO USER PERMANENT FILE
  72. * IF NEGATIVE (BIT 59 SET) USE DEFAULT
  73. *
  74. * QD QUEUE DESTINATION, LEGAL VALUES:
  75. * IF PRINTER IS SPECIFIED IN PREVIOUS PARAMETER,
  76. * PRINTER I.D. IS SPECIFIED IN NUMERIC CHARACTERS
  77. * RIGHT JUSTIFIED BINARY ZERO FILLED WITHIN A WORD.
  78. * IF NEGATIVE (BIT 17 SET) USE DEFAULT.
  79. *
  80. * IF E/I 200 IS SPECIFIED IN PREVIOUS PARAMETER, THE
  81. * ACCOUNT NUMBER IS SPECIFIED IN DISPLAY CODED LEFT
  82. * JUSTIFIED CHARACTERS, BINARY ZERO FILLED.
  83. * MAXIMUM LENGTH IS SEVEN CHARACTERS.
  84. * IF NEGATIVE (BIT 59 SET) USE DEFAULT.
  85. *
  86. * IF USER PERMANENT FILE IS SPECIFIED, THE PERMANENT
  87. * FILE NAME IS SPECIFIED IN DISPLAY CODED LEFT
  88. * JUSTIFIED CHARACTERS, BINARY ZERO FILLED.
  89. * ANY LEGAL FILE NAME IS PERMISSIBLE
  90. * WITH A MAXIMUM OF SEVEN CHARACTERS.
  91. * IF NEGATIVE (BIT 59 SET) USE DEFAULT.
  92. *
  93. * FILEN FILE NAMES OF DATA MANAGER BUFFERS TO BE DUMPED, LEGAL
  94. * VALUES:
  95. * 4 DISPLAY CHARACTERS LEFT JUSTIFIED.
  96. * IF NONE ARE GIVEN, ALL FILE BUFFERS WILL BE DUMPED.
  97. * A MAXIMUM OF 10 FILES IS ALLOWED. IF MORE ARE
  98. * SPECIFIED THEY ARE IGNORED.
  99.  
  100.  
  101. VFD 42/0LCMDUMP,18/CMDUMP
  102. CMDUMP SUBR ENTRY/EXIT
  103. SB1 1
  104. SA4 X1 PICK UP FWA
  105. MX5 60-18
  106. SA3 A1+B1 SECOND PARAMETER POINTER
  107. BX6 -X5*X4
  108. SA2 X3+ PICK UP LWA
  109. BX2 -X5*X2
  110. SA1 A3+1 THIRD PARAMETER POINTER
  111. LX2 30
  112. BX4 X2+X6 LWA+FWA
  113. SA2 X1 READ EXCHANGE PACKAGE INDICATOR
  114. SA3 A1+B1 FOURTH PARAMETER
  115. SX6 X2
  116. SA1 X3 DATA BASE BUFFER DUMP
  117. MX7 0
  118. ZR X6,CMD1 IF EXCHANGE PACKAGE DUMP NOT DESIRED
  119. MX7 1
  120. PL X2,CMD1 IF NOT DEFAULT
  121. LX7 -2
  122. CMD1 SX2 0
  123. SA3 A3+B1 FIFTH PARAMETER POINTER - OUTPUT QUEUE
  124. BX6 X4+X7 LWA+FWA+EP
  125. SX4 X1
  126. ZR X4,CMD2 IF DATA BASE BUFFERS NOT DESIRED
  127. SX2 B1
  128. LX2 58
  129. PL X1,CMD2 IF NOT DEFAULT
  130. LX2 -2
  131. CMD2 BX6 X6+X2 LWA+FWA+EP+DB
  132. SA6 CMDA SET UP CALL WORD 1
  133. SA2 X3 OUTPUT QUEUE
  134. SA4 A3+B1 SIXTH PARAMETER POINTER-QUEUE DESTINATION
  135. SB3 X2
  136. BX2 -X5*X2
  137. SA3 X4 QUEUE DESTINATION
  138. NZ B3,CMD3 IF NOT LOCAL PRINTER QUEUE
  139. MX5 18
  140. LX3 -18
  141. CMD3 BX7 X5*X3 EXTRACT QUEUE DESTINATION
  142. SB2 B1
  143. BX7 X7+X2 DESTINATION + QUEUE
  144. MX5 24
  145. SB3 MAXFN MAXIMUM NUMBER OF FILE NAMES
  146. SA7 A6+1
  147. CMD4 SA4 A4+B1 SEVENTH PARAMETER THRU END - FILE NAMES
  148. ZR X4,CMD5 IF END OF LIST
  149. SA3 X4 PICK UP DB,FN1,...
  150. BX6 X5*X3 MASK OFF FILE NAMES
  151. SA6 CMDB+B2
  152. SB2 B2+B1
  153. NE B2,B3,CMD4 IF NOT END OF FILE NAME LIST
  154. CMD5 SA2 CMDUMP PICK UP ADDRESS OF CALLER
  155. MX5 18
  156. LX5 -12
  157. SX3 B2-1 COUNT OF THE NUMBER OF FILE NAMES
  158. BX7 X5*X2
  159. IX7 X3+X7
  160. SA7 CMDB SAVE COUNT
  161. CMDUMP CMDA ISSUE REQUEST
  162. EQ CMDUMPX RETURN
  163.  
  164. MAXFN EQU 10 MAXIMUM NUMBER OF FILE NAMES
  165. CMDA VFD 1/1,1/1,1/0,1/0,8/0,18/3LLWA,12/0,18/3LFWA
  166. VFD 42/4LQDES,18/2LOQ
  167. CMDB VFD 12/0,18/3LADR,26/0,4/1RC CALL ORIGIN AND FILE COUNT
  168. BSSZ MAXFN
  169. KPOINT SPACE 4,25
  170. *** KPOINT - PRODUCT SET INTERFACE TO ISSUE THE DESIGNATED
  171. * TRANSACTION FACILITY K-DISPLAY COMMANDS.
  172. *
  173. * CALL FORMAT -
  174. *
  175. * COBOL -
  176. *
  177. * ENTER KPOINT USING BUF
  178. *
  179. * FORTRAN EXTENDED -
  180. *
  181. * CALL KPOINT(BUF)
  182. *
  183. * PARAMETER DEFINITION -
  184. *
  185. * BUF - THE ADDRESS OF A CHARACTER STRING CONTAINING THE
  186. * COMMAND TO BE ISSUED. THE CHARACTER STRING IS
  187. * TERMINATED WITH A *.* OR *)* EXCEPT FOR THE
  188. * *MESSAGE* COMMAND WHERE THE MESSAGE TO BE SENT
  189. * FOLLOWS THE *.* OR *)* AND TERMINATES ON 6
  190. * BITS OF BINARY ZEROS. THE STRING IS LIMITED
  191. * TO 8 CM WORDS.
  192.  
  193.  
  194. VFD 42/0LKPOINT,18/KPOINT
  195. KPOINT SUBR ENTRY/EXIT
  196. SX1 X1
  197. KPOINT X1 ISSUE REQUEST
  198. EQ KPOINTX RETURN
  199.  
  200. END