1
2
3
4
5
6
7
8 declare 1 header,
9 2 size fixed bin(15),
10 2 line fixed bin(15),
11 2 column fixed bin(7),
12 2 type fixed bin(7),
13 2 body char(2000);
14
15 declare 1 alphabet_name based(addr_record),
16 %include cobol_TYPE40;
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 dcl 1 reserved_word based (addr_record),
43 %include cobol_TYPE1;
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75 dcl 1 numeric_lit based (addr_record),
76 %include cobol_TYPE2;
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107 dcl 1 alphanum_lit based (addr_record),
108 %include cobol_TYPE3;
109
110
111
112
113 dcl 1 message based (addr_record),
114
115 02 size fixed bin (15),
116 02 line fixed bin(15),
117 02 column fixed bin (7),
118 02 type fixed bin (7),
119 02 run fixed bin (7),
120
121 02 number fixed bin (15),
122 02 info bit (15),
123 02 rep_bit bit (15),
124 02 infoa bit (6),
125 02 length fixed bin (15),
126 02 body char (message.length);
127
128
129 dcl 01 source based (addr_record),
130
131 02 size fixed bin (15),
132 02 line fixed bin (15),
133 02 column fixed bin (7),
134 02 type fixed bin (7),
135
136 02 info bit (8),
137 02 length fixed bin (15),
138 02 image char (source.length);
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163 dcl 1 proc_def based (addr_record),
164 %include cobol_TYPE7;
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194 dcl 1 data_name based (addr_record),
195 %include cobol_TYPE9;
196
197
198
199
200
201
202
203 dcl 1 occurs based (occptr),
204 2 keyed fixed bin (7),
205 2 key_number fixed bin(15),
206 2 dimensions fixed bin (7),
207 2 level (3),
208 3 indexedno fixed bin (15),
209 3 min fixed bin (15),
210 3 max fixed bin (15),
211 3 struclength fixed bin (15),
212 3 cswdx fixed bin(15),
213 3 cswd fixed bin (31);
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255 dcl 1 index_name based (addr_record),
256 %include cobol_TYPE10;
257
258
259
260
261
262
263
264 dcl 1 fd_token based(addr_record),
265 2 size fixed bin(15),
266 2 line fixed bin(15),
267 2 column fixed bin(7),
268 2 type fixed bin(7),
269 2 string_ptr ptr,
270 2 prev_rec ptr,
271 2 info bit(8),
272 2 def_line fixed bin(15),
273 2 file_no fixed bin(7),
274 2 name_size fixed bin(15),
275 2 name char(31);
276
277
278
279
280
281 dcl 1 cdtoken based(addr_record),
282 2 forward ptr,
283 2 backward ptr,
284 2 size fixed bin(15),
285 2 line fixed bin(15),
286 2 column fixed bin(15),
287 2 type fixed bin(15),
288 2 stringptr ptr,
289 2 prevptr ptr,
290 2 info bit(8),
291 2 options,
292 3 input bit(1),
293 3 output bit(1),
294 3 initial bit(1),
295 3 spares bit(5),
296 2 defline fixed bin(15),
297 2 level fixed bin(7),
298 2 cd_seg fixed bin(15),
299 2 cd_ofs fixed bin(31),
300 2 max_redef fixed bin(31),
301 2 mdest fixed bin(15),
302 2 name_size fixed bin(15),
303 2 name char(cdtoken.name_size);
304
305
306
307 dcl 01 satoken based (addr( record)),
308
309 03 size fixed bin(15),
310 02 line fixed bin (15),
311 02 column fixed bin (7),
312 02 type fixed bin (7),
313
314 02 stringptr ptr,
315 02 defline fixed bin (15),
316 02 address bit (32),
317 02 sanum fixed bin (15),
318 02 numrecs fixed bin (15),
319 02 minchars fixed bin (15),
320 02 maxchars fixed bin (15),
321 02 namesize fixed bin (7),
322 02 name char (30);
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347 dcl 1 mnemonic_name based (addr_record),
348 %include cobol_TYPE17;
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379 declare eosptr ptr;
380
381 dcl 1 end_stmt static,
382 %include cobol_TYPE19;
383
384
385
386
387
388
389 dcl 01 headerb based (mptr),
390
391 02 size fixed bin (15),
392 02 line fixed bin (15),
393 02 column fixed bin (7),
394 02 type fixed bin (7),
395 02 body char (header.size-16);
396
397
398
399 dcl seq fixed bin (15) static;
400 dcl mptr ptr;
401 dcl input fixed bin (15) static;
402 dcl rewind fixed bin (15) static;
403 dcl output fixed bin (15) static;
404
405 dcl 01 saveitem,
406
407 02 size fixed bin (15),
408 02 line fixed bin (15),
409 02 column fixed bin (7),
410 02 type fixed bin (7),
411 02 body char (430);
412 dcl itemsize char (512) based;
413 dcl savitmptr ptr ;
414
415 dcl 01 dumprocname static,
416 02 size fixed bin (15),
417 02 line fixed bin (15),
418 02 column fixed bin (7),
419 02 type fixed bin (7),
420 02 string_ptr ptr,
421 02 prev_rec ptr,
422 02 perform_bit bit (1),
423 02 true_false_bit bit (1),
424 02 info bit (6),
425 02 priority char (2),
426 02 multics char (1),
427 02 section_num fixed bin (15),
428 02 proc_num fixed bin (15),
429 02 length fixed bin (15),
430 02 name char (1);
431
432 dcl dpnptr ptr ;
433
434 dcl 01 saveident,
435 02 header,
436 03 size fixed bin (15),
437 03 line fixed bin (15),
438 03 column fixed bin (7),
439 03 type fixed bin (7),
440 02 body char (430);
441
442 dcl 01 dumalter static,
443 02 size fixed bin (15),
444 02 line fixed bin (15),
445 02 column fixed bin (7),
446 02 type fixed bin (7),
447 02 key fixed bin (15),
448 02 class bit (36),
449 02 length fixed bin (15),
450 02 subset fixed bin (7),
451 02 word char (5);
452
453 dcl 01 dumcancel static,
454 02 size fixed bin (15),
455 02 line fixed bin (15),
456 02 column fixed bin(7),
457 02 type fixed bin (7),
458 02 key fixed bin (15),
459 02 class bit (36),
460 02 length fixed bin (15),
461 02 subset fixed bin (7),
462 02 word char (6);
463
464 dcl 01 dumclose static,
465 02 size fixed bin (15),
466 02 line fixed bin (15),
467 02 column fixed bin (7),
468 02 type fixed bin (7),
469 02 key fixed bin (15),
470 02 class bit (1),
471 02 classa bit (35),
472 02 length fixed bin (15),
473 02 subset fixed bin (7),
474 02 word char (5);
475
476 dcl 01 duminitiate static,
477 02 size fixed bin (15),
478 02 line fixed bin (15),
479 02 column fixed bin (7),
480 02 type fixed bin (7),
481 02 key fixed bin (15),
482 class bit (36),
483 length fixed bin (15),
484 subset fixed bin (7),
485 word char (8);
486
487 dcl 01 opeos static,
488 02 header,
489 03 size fixed bin (15),
490 03 line fixed bin (15),
491 03 column fixed bin (7),
492 03 type fixed bin (7),
493 02 body,
494 03 verb fixed bin (7),
495 03 e fixed bin (7),
496 03 h fixed bin (7),
497 03 i fixed bin (7),
498 03 j fixed bin (7),
499 03 a bit (16);
500
501 dcl 01 dumopen static,
502 02 size fixed bin (15),
503 02 line fixed bin (15),
504 02 column fixed bin (7),
505 02 type fixed bin (7),
506 02 key fixed bin (15),
507 02 class bit (1),
508 02 classa bit (35),
509 02 length fixed bin(15),
510 02 subset fixed bin (7),
511 02 word char (4);
512
513 dcl 01 dumsuspend static,
514 02 size fixed bin (15),
515 02 line fixed bin (15),
516 02 column fixed bin (7),
517 02 type fixed bin (7),
518 02 key fixed bin (15),
519 02 class bit (36),
520 02 length fixed bin (15),
521 02 subset fixed bin (7),
522 02 word char (7);
523
524 dcl 01 dumterminate static,
525 02 size fixed bin (15),
526 02 line fixed bin (15),
527 02 column fixed bin (7),
528 02 type fixed bin (7),
529 02 key fixed bin (15),
530 02 class bit (36),
531 02 length fixed bin (15),
532 02 subset fixed bin (7),
533 02 word char (9);
534
535 dcl 01 store_label_1,
536 02 size fixed bin (15),
537 02 line fixed bin (15),
538 02 column fixed bin (7),
539 02 type fixed bin (7),
540 02 string_ptr ptr,
541 02 prev_rec ptr,
542 02 info bit (8),
543 02 priority char (2),
544 02 multics char (1),
545 02 section_num fixed bin (15),
546 02 proc_num fixed bin (15),
547 02 length fixed bin (15),
548 02 name char (30);
549
550 dcl 01 store_label_2,
551 02 size fixed bin (15),
552 02 line fixed bin (15),
553 02 column fixed bin (7),
554 02 type fixed bin (7),
555 02 string_ptr ptr,
556 02 prev_rec ptr,
557 02 info bit (8),
558 02 priority char (2),
559 02 multics char (1),
560 02 section_num fixed bin (15),
561 02 proc_num fixed bin (15),
562 02 length fixed bin (15),
563 02 name char (30);
564 dcl savidptr ptr ;
565
566 dcl exten (430) char (1) based;
567 dcl occptr ptr;
568
569
570
571 dcl 01 dumreturn static,
572 02 size fixed bin (15),
573 02 line fixed bin (15),
574 02 column fixed bin (7),
575 02 type fixed bin (7),
576 02 key fixed bin (15),
577 02 class bit (1),
578 02 classa bit (35),
579 02 length fixed bin (15),
580 02 subset fixed bin (7),
581 02 word char (6);
582
583
584
585 dcl 01 dumwrite static,
586 02 size fixed bin (15),
587 02 line fixed bin (15),
588 02 column fixed bin (7),
589 02 type fixed bin (7),
590 02 key fixed bin (15),
591 02 class bit (1),
592 02 classa bit (35),
593 02 length fixed bin (15),
594 02 subset fixed bin (7),
595 02 word char (5);
596
597
598
599 dcl 01 dumread static,
600 02 size fixed bin (15),
601 02 line fixed bin (15),
602 02 column fixed bin (7),
603 02 type fixed bin (7),
604 02 key fixed bin (15),
605 02 class bit (1),
606 02 classa bit (35),
607 02 length fixed bin (15),
608 02 subset fixed bin (7),
609 02 word47 char (4);
610
611
612
613 dcl 01 dumrelease static,
614 02 size fixed bin (15),
615 02 line fixed bin (15),
616 02 column fixed bin (7),
617 02 type fixed bin (7),
618 02 key fixed bin (15),
619 02 class bit (1),
620 02 classa bit (35),
621 02 length fixed bin (15),
622 02 subset fixed bin (7),
623 02 word char (7);
624
625
626
627 dcl 01 sv_srtfil_rec,
628 02 size fixed bin(15),
629 02 body char (300);
630
631
632
633 dcl 01 dumperform static,
634 02 size fixed bin (15),
635 02 line fixed bin (15),
636 02 column fixed bin (7),
637 02 type fixed bin (7),
638 02 key fixed bin (15),
639 02 class bit (1),
640 02 classa bit (35),
641 02 length fixed bin (15),
642 02 subset fixed bin (7),
643 02 word char (25);
644
645
646 dcl convtemp fixed bin (15);
647 dcl histno fixed bin (15);
648
649
650
651 dcl 01 sv_proc_def,
652 02 size fixed bin (15),
653 02 body char (300);
654
655
656
657 dcl 01 sv_usfil,
658 02 size fixed bin (15),
659 02 body char (300);
660
661
662
663 dcl save_gentag fixed bin (15);
664 dcl seqvarptr ptr;
665 dcl seqvarleng fixed bin (15);
666 dcl varrecaddr char (5);
667 declare repcsbit bit(1);
668
669 declare cobol_pdst entry(ptr , fixed bin(15)) ext;
670
671
672
673