1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 dcl iobp ptr;
24 dcl 1 iob aligned based (iobp),
25 2 next_bufx fixed bin (17) unal,
26 2 next_statex fixed bin (17) unal,
27 2 state fixed bin,
28 2 state_time fixed bin (71),
29 2 datax bit (18) unal,
30 2 flags unal,
31 3 write bit (1),
32
33 3 pad bit (17),
34 2 disk_post_buf fixed bin,
35 2 idcw_word bit (36),
36 2 header_dcw bit (36),
37 2 data_dcw bit (36),
38 2 tdcw_word bit (36),
39 2 head like rec_header,
40 2 pad2 (2) bit (36);
41
42 dcl part_arrayp ptr;
43 dcl 1 part_array (64) aligned like part based (part_arrayp);
44
45 dcl partp ptr;
46 dcl 1 part aligned based (partp),
47 2 name char (4),
48 2 pv_name char (32),
49 2 device char (8),
50 2 pv_pvtx fixed bin (17) unal,
51 2 next_idx fixed bin (17) unal,
52 (
53 2 complete bit (1),
54 2 removed bit (1),
55 2 pad bit (16)
56 ) unal,
57 2 frec fixed bin (17) unal,
58 2 lrec fixed bin (17) unal,
59 2 nrec fixed bin (17) unal,
60 2 tfrec fixed bin (17) unal,
61 2 tlrec fixed bin (17) unal,
62 2 tnrec fixed bin (17) unal;
63
64 dcl pv_arrayp ptr;
65 dcl 1 pv_array (63) aligned like pv based (pv_arrayp);
66
67 dcl pvp ptr;
68 dcl 1 pv aligned based (pvp),
69 2 name char (32),
70 2 real_name char (32),
71 2 device char (8),
72 2 pvtx fixed bin (17) unal,
73 2 state fixed bin (17) unal,
74 2 restart aligned,
75 3 rec_on_pv fixed bin (18),
76 3 rec_in_type fixed bin,
77 2 part_idx fixed bin (17) unal,
78 (
79 2 all bit (1),
80 2 part_requested bit (1),
81 2 all_parts bit (1),
82 2 only_part bit (1),
83 2 complete bit (1),
84 2 removed bit (1),
85 2 zero_vtoc bit (1),
86 2 pad bit (11)
87 ) unal,
88 2 zrec fixed bin (17) unal;
89
90 dcl si_version_1 char (8) internal static options (constant) init ("si_ver01");
91 dcl si_ptr ptr;
92 dcl 1 si aligned based (si_ptr),
93 2 version_id char (8),
94
95 2 bit_map_ptr ptr,
96 2 datap ptr,
97 2 info_tape_label_ptr
98 ptr,
99 2 part_ptr ptr,
100 2 pv_ptr ptr,
101 2 tape_label_ptr ptr,
102 2 tcb_ptr ptr,
103 2 vol_preamble_ptr
104 ptr,
105 2 vol_map_ptr ptr,
106 2 vol_info_ptr ptr,
107
108 2 current_rec_in_area
109 fixed bin (18),
110 2 first_disk_post_buf
111 fixed bin,
112 2 first_rec fixed bin (18),
113 2 first_tape_number
114 fixed bin,
115 2 ioi_term_post_buf
116 fixed bin,
117 2 ioi_spec_post_buf
118 fixed bin,
119 2 ioi_statusx fixed bin (18),
120 2 last_rec fixed bin (18),
121 2 last_tape_number
122 fixed bin,
123 2 last_used_vtoc_record
124 fixed bin (18),
125 2 next_tape_number
126 fixed bin,
127 2 old_rec_type fixed bin,
128 2 part_count fixed bin,
129 2 previous_rec fixed bin (18),
130 2 pv_count fixed bin,
131 2 pvx fixed bin,
132 2 rec_type fixed bin,
133 2 recordx fixed bin (18),
134 2 tape_count fixed bin,
135 2 tape_rec_count fixed bin (35),
136 2 tape_seq_number fixed bin,
137 2 tcbx fixed bin,
138 2 usable_tape_devices
139 fixed bin,
140
141 2 old_part_name char (4) unal,
142 2 tape_set char (32) unal,
143
144 2 complete bit (1),
145 2 display_pv_record
146 bit (1),
147 2 find_start_of_part
148 bit (1),
149 2 last_idcwx bit (18),
150 2 need_info_tape bit (1),
151 2 need_zero_record
152 bit (1),
153 2 pv_record_detected
154 bit (1),
155 2 pvid_being_restored
156 bit (36),
157 2 restart bit (1),
158 2 restart_requested
159 bit (1),
160 2 tape_set_uid bit (36),
161 2 write_eof bit (1),
162 2 written_preamble
163 bit (1),
164 2 written_tape_label
165 bit (1);
166
167 dcl sri_version_1 char (8) internal static options (constant) init ("sri_v001");
168 dcl srip ptr;
169 dcl 1 sri aligned based (srip),
170 2 version_id char (8),
171 2 cf_arrayp ptr,
172 2 cf_count fixed bin,
173 2 cfx fixed bin,
174 2 flags unaligned,
175 3 doing_restore bit (1),
176 3 debug bit (1), debug
177 3 pad bit (34),
178 2 set_index fixed bin (17) unal,
179 2 set_count fixed bin (17) unal,
180 2 set_infop ptr,
181 2 part_area_ptr ptr,
182 2 pv_area_ptr ptr,
183 2 tcb_area_ptr ptr,
184 2 pvt_array_ptr ptr,
185 2 whoami char (8) unaligned;
186
187 dcl 1 stat_ws aligned based (tcb.wksp),
188 2 retry_dcw (3) bit (36),
189 2 idcw bit (36),
190 2 tdcw bit (36),
191 2 pad bit (36),
192 2 stat like istat;
193
194 dcl 1 survey_ws aligned based (tcb.wksp),
195 2 idcw bit (36),
196 2 dcw bit (36),
197 2 stat like istat,
198 2 data,
199 3 handler (16) unaligned,
200 4 pad1 bit (1),
201 4 reserved bit (1),
202 4 operational bit (1),
203 4 ready bit (1),
204 4 number uns fixed bin (5),
205 4 pad2 bit (1),
206 4 speed uns fixed bin (3),
207 4 nine_track bit (1),
208 4 density uns fixed bin (4);
209
210 dcl tcb_arrayp ptr;
211 dcl 1 tcb_array (0:16) aligned like tcb based (tcb_arrayp);
212
213
214 dcl tcbp ptr;
215 dcl 1 tcb aligned based (tcbp),
216 2 name char (8),
217 2 device fixed bin,
218 2 ioi_index fixed bin,
219 2 ioi_ev_chn fixed bin (71),
220 2 wksp ptr,
221 2 tape_vol_number char (4),
222 2 nbufs fixed bin,
223 2 buf_listx fixed bin,
224 2 status_count fixed bin,
225 2 status_idx fixed bin,
226 2 statusx fixed bin,
227 2 records_written fixed bin,
228 2 retry_count fixed bin,
229 2 flags unal,
230 3 removed bit (1),
231 3 attached bit (1),
232 3 surveyed bit (1),
233 3 fips bit (1),
234 3 write_tape bit (1),
235 3 mount_requested
236 bit (1),
237 3 tape_mounted bit (1),
238 3 write_protected
239 bit (1),
240 3 density_set bit (1),
241 3 one_eof bit (1),
242 3 eot bit (1),
243 3 retry_in_progress
244 bit (1),
245 2 density_command bit (6) unal,
246 2 density bit (5) unal,
247
248
249
250
251 2 densities_available
252 bit (5) unal,
253 2 speed bit (3) unal;
254
255
256
257
258
259
260