Table of Contents

DMSCCB Source

References

Source Listing

DMSCCB.MACRO.txt
  1. MACRO 00001000
  2. DMSCCB &DSECT=YES 00002000
  3. PUSH PRINT 00002100
  4. AIF ('&SYSPARM' NE 'SUP').ACC01 00002200
  5. PRINT OFF,NOGEN 00002300
  6. .ACC01 ANOP 00002400
  7. * VSAM - DMSCCB 00003000
  8. AIF ('&DSECT' EQ 'NO').CCBNDS 00004000
  9. DMSCCB DSECT 00005000
  10. AGO .CCBDST 00006000
  11. .CCBNDS ANOP 00007000
  12. DMSCCB DS 0F 00008000
  13. .CCBDST ANOP 00009000
  14. CCBST EQU * START CCB 00010000
  15. *********************************************************************** 00011000
  16. * * 00012000
  17. * THIS IS THE DESCRIPTION OF THE CCB BLOCK * 00013000
  18. * * 00014000
  19. *********************************************************************** 00015000
  20. CCBD EQU * COMMAND CONTROL BLOCK 00016000
  21. SPACE 1 00017000
  22. CCBLEN DS 0CL16 MAP OF THE DOS CCB 00018000
  23. CCBCNT DS XL2 RESIDUAL COUNT 00019000
  24. SPACE 00020000
  25. CCBERMAP DS 0XL4 4 BYTES USED TO CHECK ERRORS 00021000
  26. CCBCOM1 DS XL1 COMMUNICATIONS BYTE NO. 1 00022000
  27. CCBWAIT EQU X'80' TRAFFIC BIT(SET AT CE) 00023000
  28. CCBEOF EQU X'40' END-OF-FILE 00024000
  29. CCBIOERR EQU X'20' UNRECOVERABLE I/O ERROR 00025000
  30. CCBERROK EQU X'10' ACCEPT UNRECOVERABLE ERR 00026000
  31. CCBRDC EQU X'08' RETURN DATA CHECKS 00027000
  32. CCBPDE EQU X'04' POST AT DEVICE END 00028000
  33. CCBDCV EQU X'02' RETURN DATA CHECK RD/CHK 00029000
  34. CCBUERR EQU X'01' USER ERROR ROUTINE 00030000
  35. SPACE 00031000
  36. CCBCOM2 DS XL1 COMMUNICATIONS BYTE NO. 2 00032000
  37. CCBDCCNT EQU X'80' DATA CHECK IN COUNT AREA 00033000
  38. CCBTRKOV EQU X'40' TRACK OVERRUN 00034000
  39. CCBEOC EQU X'20' END-OF-CYLINDER 00035000
  40. CCBDC EQU X'10' DATA CHECK 00036000
  41. CCBNOREC EQU X'08' NO-RECORD-FOUND 00037000
  42. CCBRETRY EQU X'04' RETRY NO RECORD FOUND 00038000
  43. CCBVER EQU X'02' VERIFY ERROR 00039000
  44. CCBCC EQU X'01' COMMAND CHAIN(RETRY) 00040000
  45. SPACE 00041000
  46. CCBCSW1 DS XL1 CSW STATUS BIT NO. 1 00042000
  47. CCBATTN EQU X'80' ATTENTION 00043000
  48. CCBSTMOD EQU X'40' STATUS MODIFIER 00044000
  49. CCBCUE EQU X'20' CONTROL UNIT END 00045000
  50. CCBBUSY EQU X'10' BUSY 00046000
  51. CCBCE EQU X'08' CHANNEL END 00047000
  52. CCBDE EQU X'04' DEVICE END 00048000
  53. CCBUC EQU X'02' UNIT CHECK 00049000
  54. CCBUE EQU X'01' UNIT EXCEPTION 00050000
  55. SPACE 00051000
  56. CCBCSW2 DS XL1 CSW STATUS BIT NO. 2 00052000
  57. CCBPCI EQU X'80' PROGRAM-CONTROLLED INTERRUPT 00053000
  58. CCBILEN EQU X'40' INCORRECT LENGTH 00054000
  59. CCBPROGM EQU X'20' PROGRAM CHECK 00055000
  60. CCBPROT EQU X'10' PROTECTION CHECK 00056000
  61. CCBCHAND EQU X'08' CHANNEL DATA CHECK 00057000
  62. CCBCHANC EQU X'04' CHANNEL CONTROL CHECK 00058000
  63. CCBICTRL EQU X'02' INTERFACE CONTROL CHECK 00059000
  64. CCBCHAIN EQU X'01' CHAINING CHECK 00060000
  65. SPACE 00061000
  66. CCBSYMU DS 0XL2 SYMBOLIC UNIT(SYSUN) 00062000
  67. CCBSUCLS DS XL1 U - LUB CLASS 00063000
  68. CCBSUNUM DS XL1 N - LUB NUMBER WITHIN CLASS 00064000
  69. SPACE 00065000
  70. CCBLIOBS DS XL1 RESERVED FOR LIOBS 00066000
  71. SPACE 00067000
  72. CCBCCW DS XL3 PT TO START OF CHANNEL PROGRAM 00068000
  73. SPACE 00069000
  74. CCBCOM3 DS XL1 COMMUNICATION BYTE NO. 3 00070000
  75. CCBAPEND EQU X'40' APPENDAGE EXIT AT INTERRUPT 00071000
  76. SPACE 00072000
  77. CCBCSW DS XL3 PT TO CSW OR PT APPENDAGE RTN 00073000
  78. SPACE 00074000
  79. CCBLDATB DS A ADDRESS OF LAST DATA BLOCK 00075000
  80. SPACE 1 00076000
  81. CCBLCCWB DS A ADDRESS OF LAST CCW BLOCK 00077000
  82. SPACE 1 00078000
  83. DS F AVAILABLE 00079000
  84. SPACE 1 00080000
  85. CCBUFLGS DS X I/O MANAGER CCB FLAGS 00081000
  86. CCBUEAIC EQU X'80' ERROR ANALYSIS IN CONTROL 00082000
  87. CCBUEAC EQU X'40' ERROR ANALYSIS COMPLETE 00083000
  88. CCBURDCW EQU X'20' READ CCW ACTIVE 00084000
  89. CCBRPS EQU X'10' RPS CHAN PGM CANDIDATE 00085000
  90. SPACE 1 00086000
  91. CCBFSCCW DS XL3 SAVE AREA FOR FIRST CCW ADDR 00087000
  92. SPACE 1 00088000
  93. CCBRDCCW DS F ADDRESS OF FIRST READ CCW 00089000
  94. SPACE 1 00090000
  95. CCBWTCCW DS F ADDRESS OF FIRST WRITE CCW 00091000
  96. SPACE 1 00092000
  97. CCBLWCCW DS F ADDRESS OF THE LAST WRITE CCW 00093000
  98. SPACE 1 00094000
  99. DS 3F AVAILABLE 00095000
  100. SPACE 1 00096000
  101. * THIS CHAIN FIELD MUST HAVE SAME DISPLACEMENT AS FCBCHAIN IN 00097000
  102. * FCDB AND BKPFSTBK IN BKPHD 00098000
  103. CCBNCCB DS A ADDRESS OF NEXT CCB BLOCK 00099000
  104. SPACE 1 00100000
  105. DS F AVAILABLE 00101000
  106. POP PRINT 00101100
  107. MEND 00102000