-
Notifications
You must be signed in to change notification settings - Fork 4
/
ASMEXIT.JCL
1258 lines (1258 loc) · 101 KB
/
ASMEXIT.JCL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
43
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
76
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
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
164
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
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
348
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
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//JCL1 JCLLIB ORDER=<HLQ>.<QUAL2>.ASM
//*
//AMSLE EXEC $ASM,NAME=E15DDFID,
// SYSLMOD=<HLQ>.<QUAL2>.LOAD
//SYSLIB DD DISP=SHR,
// DSN=SYS1.MACLIB
// DD DISP=SHR,
// DSN=<SDSNMACS>
//SYSIN DD *
TITLE 'E15DDFID - E15 TO EXTRACT DDF IDENTIFIERS FROM 101'
PRINT NOGEN
E15DDFID START 0
E15 CSECT
***********************************************************************
* *
* E15DDFID - E15 to extract DDF identifiers from SMF 101 *
* *
* This E15 exit takes information from the Product Section of an SMF *
* 101 and writes it out as a record. *
* *
***********************************************************************
R0 EQU 0
R1 EQU 1
R2 EQU 2
R3 EQU 3
R4 EQU 4
R5 EQU 5
R6 EQU 6
R7 EQU 7
R8 EQU 8
R9 EQU 9
R10 EQU 10
R11 EQU 11
R12 EQU 12
R13 EQU 13
R14 EQU 14
R15 EQU 15
*
USING E15,R12
*
STM R14,R12,12(R13) SAVE ALL REGISTERS EXCEPT 13
LA R12,0(0,R15)
ST R13,REGISTER_SAVE_AREA+4
LA R14,REGISTER_SAVE_AREA
ST R14,8(R13)
LR R13,R14
*
* SAVE PARM LIST POINTER IN R2
LR R2,R1
*
* SAVE RECORD POINTER
L R3,0(,R2)
ST R3,RECORD_POINTER
*
* CHECK FOR FIRST RECORD AND IF SO RESET FLAG AND DO SET UP
CLC FIRST_RECORD_FLAG,=F'0'
BNZ PROC_REC1
*
* CHECK IF THERE'S A RECORD AND IF SO PROCESS IT
CHK_NOREC LTR R3,R3
BNZ CHK_101
*
* PROCESSING WHEN ALL RECORDS HAVE BEEN READ
*
* FREE GETMAIN'ED STORAGE
EOF FREEMAIN R,LV=32768,A=OUT_BUFFER
FREEMAIN R,LV=TS_LENGTH,A=TEMP_STOR
*
SR R1,R1
LA R15,8 EOF SO DON'T RETURN
*
GOBACK L R13,4(,R13)
L R14,12(,R13)
LM R2,R12,28(R13)
BR R14
*
* FLAG THE RECORD IS PASSED BACK CHANGED
CHANGED SR R15,R15
B GOBACK
*
* REJECT THE RECORD
REJECT LA R15,4
B GOBACK
*
* RESET FIRST RECORD FLAG
PROC_REC1 XC FIRST_RECORD_FLAG,FIRST_RECORD_FLAG
*
* OBTAIN TEMPORARY STORAGE AREA
GETMAIN R,LV=TS_LENGTH
ST R1,TEMP_STOR
*
* OBTAIN 32K FOR MODIFIED RECORD
GETMAIN R,LV=32768
ST R1,OUT_BUFFER
*
* ZERO OUT BDW
USING RC,R1
XC RCBDW,RCBDW
DROP R1
*
B CHK_NOREC
*
* PROCESS EACH DATA RECORD
*
* REJECT RECORD IF NOT TYPE 101
CHK_101 CLI 5(R3),101
BNE REJECT
*
* POINT AT OUTPUT RECORD AREA
L R4,TEMP_STOR
USING TEMP,R4
*
* POINT AT OUTPUT RECORD AREA
L R5,OUT_BUFFER
USING RC,R5
USING SM101,R3
*
* MAKE R11 POINT TO TRIPLETS
LA R11,SM101END
USING QWA0,R11
*
LR R10,R3
A R10,QWA01PSO CALCULATE PROD SECT ADDR
*
USING QWHS,R10
*
* Handle IFCID 3 differently from 239
CLC QWHSIID,=H'0003'
BNE IFCID239
*
* Move IFCID (in this case 3) to output record
LH R6,QWHSIID
STH R6,RCIFCID
*
* Move QWHS eyecatcher into output record
MVC RCQWHS,=C'QWHSMGLP'
*
* Move LWID into output record
MVC RCLWID,QWHSLWID
*
* Move QWHSLOCN into output record
MVC RCQWHSLOCN,QWHSLOCN
*
SR R6,R6
LH R6,QWHSLEN
AR R10,R6 CORRELATION SECTION FOLLOWS
DROP R10
USING QWHC,R10
*
* Reject non-DDF stuff, storing QWHCATYP in both DUW and RUW cases
L R6,QWHCATYP
C R6,=F'00000007'
BE IS_DDF
*
C R6,=F'00000008' Is not DUW so try RUW
BE IS_DDF
*
* See if QLAC as that would make it DDF
* (R6 still has QWHCATYP)
SR R7,R7
LH R7,QWA01R5N
*
LTR R7,R7
BZ REJECT
*
IS_DDF ST R6,RCATYP
*
* Clear QMDA fields. They'll be filled in later if we have any
MVC RCQMDA,=C'QMDAMGLP'
XC RCASLN,RCASLN
MVI RCAINF,X'40'
MVC RCAINF+1,RCAINF
*
* Clear QWAX fields. They'll be filled in later if we have any
MVC RCQWAX,=C'QWAXMGLP'
XC RCOTSE,RCOTSE
XC RCALOG,RCALOG
XC RCAWAR,RCAWAR
XC RCALCT,RCALCT
XC RCANAR,RCANAR
*
* Move selection stuff into output record
*
* Time gets broken down into hours and minutes
L R6,6(R3)
ST R6,RCTIME
*
* Hour - store bottom two bytes of packed
SRDA R6,32(0)
D R6,=F'360000'
CVD R7,TEMPPACK
MVC RCHOUR,TEMPPACK2
*
* Minute - store bottom two bytes of packed
SRDA R6,32(0)
D R6,=F'6000'
CVD R7,TEMPPACK
MVC RCMIN,TEMPPACK2
*
* Second - store bottom two bytes of packed
SRDA R6,32(0)
D R6,=F'100'
CVD R7,TEMPPACK
MVC RCSEC,TEMPPACK2
*
* Hundredths of a second - store bottom two bytes of packed
CVD R6,TEMPPACK
MVC RCHUN,TEMPPACK2
*
* Date portion of SMF timestamp
L R6,10(R3)
ST R6,RCDATE
*
* SMFID
L R6,14(R3)
ST R6,RCSMFID
*
* DB2 SSID
L R6,18(R3)
ST R6,RCSSID
*
* DB2 AUTHID
MVC RCAID,QWHCAID
*
* Basic assumption is Corrid is not CICS so move as is
MVC RCCV,QWHCCV
*
* Test if corrid is CICS and then translate if it is
CLC FIRST4,=C'ENTR'
BE DO_CICS Entry thread
*
CLC FIRST4,=C'POOL'
BE DO_CICS Pool thread
*
* Not CICS so skip CICS-specific processing
B AFTER_CICS
*
* Is CICS so move bytes 4 to 8 to front of RCCV and clear rest
DO_CICS MVC THIRD4,SECOND4
MVC FIRST8,=C'CICS Tx '
*
AFTER_CICS EQU *
MVC RCCN,QWHCCN
MVC RCPLAN,QWHCPLAN
MVC RCOPID,QWHCOPID
MVC RCTOKN,QWHCTOKN
MVC RCEUID,QWHCEUID
MVC RCEUTX,QWHCEUTX
MVC RCEUWN,QWHCEUWN
*
SR R6,R6
LH R6,QWHCLEN
AR R10,R6 CPU SECTION FOLLOWS
DROP R10
USING QWHU,R10
CLI QWHUTYP,QWHSHU08
BNE NO_QWHU
*
SR R6,R6
LH R6,QWHULEN
AR R10,R6 DISTRIBUTED SECTION FOLLOWS
*
DROP R10
USING QWHD,R10
*
NO_QWHU MVC RCIPADDR,QWHDRQNM
MVC RCQWHDSVNM,QWHDSVNM
*
* Decide whether we have a QMDA to copy from
SR R10,R10
LH R10,QWA01R6N
LTR R10,R10
BZ AFTER_QMDA
*
LR R10,R3
A R10,QWA01R6O CALCULATE QMDA SECT ADDR
*
USING QMDA,R10
*
MVC RCASLN,QMDAASLN
MVC RCAINF,QMDAAINF
*
DROP R10
*
AFTER_QMDA EQU *
LR R10,R3
A R10,QWA01R1O CALCULATE QWAC SECT ADDR
USING QWAC,R10
*
MVC RCQWAC,=C'QWACMGLP'
*
MVC RCRINV,QWACRINV
MVC RCWLME,QWACWLME
MVC RCPKGN,QWACPKGN
*
* Populate Commit, Abort and Commit+Abort fields in output record
L R1,QWACCOMM
ST R1,RCCOMM
MVC RCABRT,QWACABRT
A R1,QWACABRT
ST R1,RCCOMMABO
*
* Calculate Class 1 elapsed time
* Note: Includes nested and non-nested time
LG R6,QWACESC
STG R6,RCQWACESC
*
LG R8,QWACBSC
STG R8,RCQWACBSC
*
* If rollup flag on then don't do the subtraction
TM QWACFLGS+1,X'40'
BNZ SHIFTC1ET
*
* Not rollup so subtract C1 start from C1 finish
SGR R6,R8
*
SHIFTC1ET STG R6,RCC1TIME
*
* Cl 2 non-nested time
LG R6,QWACASC
STG R6,RCC2NNTIME
* Now do Stored Procedures time and add to total
*
LG R8,QWACSPEB
STG R8,RCC2SPTIME
AGR R6,R8
*
* Now do User-Defined functions time and add to total
*
LG R8,QWACUDEB
STG R8,RCC2UDFTIME
AGR R6,R8
*
LG R8,QWACCAST
STG R8,RCC2SPSCHTIME
AGR R6,R8
*
LG R8,QWACUDST
STG R8,RCC2UDFSCHTIME
AGR R6,R8
*
STG R6,RCC2TIME Finally store away all C2 time
*
* Calculate Non Class 2 time
LG R6,RCC1TIME
SG R6,RCC2TIME
STG R6,RCNONC2TIME
*
* Calculate Class 1 TCB time
LG R6,QWACEJST
*
* If rollup flag on then don't do the subtraction
TM QWACFLGS+1,X'40'
BNZ SHIFTC1CP
*
* Not rollup so subtract C1 start from C1 finish
LG R8,QWACBJST
SGR R6,R8
*
* Now do Stored Procedures C1 TCB time and add to total
*
SHIFTC1CP LG R8,QWACSPCP
AGR R6,R8
* Now do User-Defined Functions C1 TCB time and add to total
*
LG R8,QWACUDCP
AGR R6,R8
*
STG R6,RCC1TCB
*
* Adjust class 2 TCB time to make into ms and then store
* First non-nested time
LG R6,QWACAJST
STG R6,RCC2NNTCB
* Now do Stored Procedures TCB time and add to total
*
LG R8,QWACSPTT
STG R8,RCC2SPTCB
AGR R6,R8
* Now do User-Defined Functions TCB time and add to total
*
LG R8,QWACUDTT
STG R8,RCC2UDFTCB
AGR R6,R8
*
STG R6,RCC2TCB Finally store away all C2 time
*
* Calculate Non Class 2 TCB
LG R6,RCC1TCB
SG R6,RCC2TCB
STG R6,RCNONC2TCB
*
* Move zIIP Eligible into record
MVC RCZIIPEL,QWACZIIP_ELIGIBLE
*
* Move zIIP C1 time into record
MVC RCC1ZIIP,QWACCLS1_zIIP
*
* Move zIIP C2 time into record
MVC RCC2ZIIP,QWACCLS2_zIIP
*
* Move Sync DB Read time into record
MVC RCSYNCRD,QWACAWTI
*
* Move Async DB Write time into record
MVC RCASYNCWR,QWACAWTW
*
* Move Async DB Read time into record
MVC RCASYNCRD,QWACAWTR
*
* Move Log Write time into record
MVC RCLOGWR,QWACAWLG
*
* Move Log Write records and bytes into record
MVC RCLOGRECSWR,QWACLRN
MVC RCLOGBYTESWR,QWACLRAB
*
* Move Log Write wait events into record
MVC RCLOGWREVT,QWACARLG
*
* Move Local Lock time into record
MVC RCLOCALLOCK,QWACAWTL
*
* Move Global Lock time into record
MVC RCGLOBALLOCK,QWACAWTJ
*
DROP R10
*
* QWAX Section
SR R10,R10
LH R10,QWA01RCN
LTR R10,R10
BZ AFTER_QWAX
*
LR R10,R3
A R10,QWA01RCO CALCULATE QWAX SECT ADDR
*
USING QWAX,R10
*
MVC RCOTSE,QWAXOTSE
*
* Logging
MVC RCALOG,QWAXALOG
MVC RCAWAR,QWAXAWAR
MVC RCALCT,QWAXALCT
MVC RCANAR,QWAXANAR
*
DROP R10
*
AFTER_QWAX EQU *
LR R10,R3
A R10,QWA01R5O CALCULATE QLAC SECT ADDR
* 2 byte adjustment seems to be required
A R10,=F'2'
USING QLAC,R10
*
MVC RCQLAC,=C'QLACMGLP'
MVC RCLOCN,QLACLOCN
MVC RCSQLS,QLACSQLS
MVC RCSQLR,QLACSQLR
MVC RCROWS,QLACROWS
MVC RCROWR,QLACROWR
MVC RCBYTS,QLACBYTS
MVC RCBYTR,QLACBYTR
MVC RCCNVS,QLACCNVS
MVC RCCNVR,QLACCNVR
MVC RCMSGS,QLACMSGS
MVC RCMSGR,QLACMSGR
MVC RCCOMS,QLACCOMS
MVC RCCOMR,QLACCOMR
MVC RCABRS,QLACABRS
MVC RCABRR,QLACABRR
MVC RCBTBF,QLACBTBF
MVC RCBRBF,QLACBRBF
MVC RCMDWT,QLACMDWT
DROP R10
*
LR R10,R3
A R10,QWA01R2O CALCULATE QXST SECT ADDR
USING QXST,R10
*
MVC RCEYE,QXEYE
MVC RCQXST,=C'QXSTMGLP'
MVC RCSELECT,QXSELECT
MVC RCINSRT,QXINSRT
MVC RCUPDTE,QXUPDTE
MVC RCDELET,QXDELET
MVC RCDESC,QXDESC
MVC RCPREP,QXPREP
MVC RCOPEN,QXOPEN
MVC RCCLOSE,QXCLOSE
MVC RCFETCH,QXFETCH
MVC RCCALLSP,QXCALL
MVC RCCALLUDF,QXCAUD
MVC RCSTFND,QXSTFND
MVC RCSTNFND,QXSTNFND
MVC RCSTIPRP,QXSTIPRP
MVC RCSTNPRP,QXSTNPRP
MVC RCSTDEXP,QXSTDEXP
MVC RCSTDINV,QXSTDINV
DROP R10
*
* Calculate new record length
CALC_3_RLEN LA R9,RC_LENGTH
STH R9,RCRLEN
*
* Return record from output area rather than input record
L R1,OUT_BUFFER
B CHANGED
***********************************************************************
* *
* IFCID 239 code *
* *
***********************************************************************
USING QWHS,R10
* Move IFCID (in this case 239) to output record
* R10 points to QWHS, R5 to Output record
DROP R5
USING I239,R5
*
IFCID239 XC 0(200,R5),0(R5)
XC 200(200,R5),200(R5)
XC 400(200,R5),400(R5)
XC 600(200,R5),600(R5)
XC 800(200,R5),800(R5)
XC 1000(200,R5),1000(R5)
XC 1200(200,R5),1200(R5)
XC 1400(200,R5),1400(R5)
XC 1600(200,R5),1600(R5)
*
* SMFID
L R6,14(R3)
ST R6,I239SMFID
*
* DB2 SSID
L R6,18(R3)
ST R6,I239SSID
*
LH R6,QWHSIID
STH R6,I239IFCID
*
* Move QWHS eyecatcher into output record
MVC I239QWHS,=C'QWHSMGLP'
*
* Move LWID into output record
MVC I239LWID,QWHSLWID
*
* Move QWHSLOCN and plan and corr into output record
MVC I239QWHSLOCN,QWHSLOCN
*
SR R6,R6
LH R6,QWHSLEN
AR R10,R6 CORRELATION SECTION FOLLOWS
DROP R10
USING QWHC,R10
*
MVC I239CORR,QWHCCV
MVC I239CONN,QWHCCN
MVC I239PLAN,QWHCPLAN
*
* Reject non-DDF stuff, storing QWHCATYP in both DUW and RUW cases
L R6,QWHCATYP
C R6,=F'00000007'
BE IS_DDF239
*
C R6,=F'00000008' Is not DUW so try RUW
BE IS_DDF239
*
B REJECT
*
IS_DDF239 ST R6,I239ATYP
*
*
LA R11,SM101END
USING QWA1,R11
* USING SM101,R3
LR R10,R3
*
LH R7,QWA11R2N
STH R7,I239SECTN
*
LH R6,QWA11R2L
STH R6,I239SECTL
*
A R10,QWA11R2O CALCULATE QPAC SECT ADDR
*
* Process 0th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
*
* Move past two-byte length field
LA R10,2(,R10)
*
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN0
*
LH R6,QPACAAFG
STH R6,I239AAFG0
*
MVC I239LOCN0,QPACLOCN
MVC I239COLN0,QPACCOLN
MVC I239PKID0,QPACPKID
MVC I239AANM0,QPACAANM
MVC I239ASCH0,QPACASCH
MVC I239CPU0,QPACTJST
MVC I239ZIIP0,QPACCLS7_zIIP
MVC I239ET0,QPACSCT
MVC I239SPROCS0,QPACSPNS
MVC I239UDFS0,QPACUDNU
MVC I239IDAA0,QPACAACW
*
CH R7,=H'0002'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 1st section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN1
*
LH R6,QPACAAFG
STH R6,I239AAFG1
*
MVC I239LOCN1,QPACLOCN
MVC I239COLN1,QPACCOLN
MVC I239PKID1,QPACPKID
MVC I239AANM1,QPACAANM
MVC I239ASCH1,QPACASCH
MVC I239CPU1,QPACTJST
MVC I239ZIIP1,QPACCLS7_zIIP
MVC I239ET1,QPACSCT
MVC I239SPROCS1,QPACSPNS
MVC I239UDFS1,QPACUDNU
MVC I239IDAA1,QPACAACW
*
CH R7,=H'0003'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 2nd section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN2
*
LH R6,QPACAAFG
STH R6,I239AAFG2
*
MVC I239LOCN2,QPACLOCN
MVC I239COLN2,QPACCOLN
MVC I239PKID2,QPACPKID
MVC I239AANM2,QPACAANM
MVC I239ASCH2,QPACASCH
MVC I239CPU2,QPACTJST
MVC I239ZIIP2,QPACCLS7_zIIP
MVC I239ET2,QPACSCT
MVC I239SPROCS2,QPACSPNS
MVC I239UDFS2,QPACUDNU
MVC I239IDAA2,QPACAACW
*
CH R7,=H'0004'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 3rd section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN3
*
LH R6,QPACAAFG
STH R6,I239AAFG3
*
MVC I239LOCN3,QPACLOCN
MVC I239COLN3,QPACCOLN
MVC I239PKID3,QPACPKID
MVC I239AANM3,QPACAANM
MVC I239ASCH3,QPACASCH
MVC I239CPU3,QPACTJST
MVC I239ZIIP3,QPACCLS7_zIIP
MVC I239ET3,QPACSCT
MVC I239SPROCS3,QPACSPNS
MVC I239UDFS3,QPACUDNU
MVC I239IDAA3,QPACAACW
*
CH R7,=H'0005'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 4th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN4
*
LH R6,QPACAAFG
STH R6,I239AAFG4
*
MVC I239LOCN4,QPACLOCN
MVC I239COLN4,QPACCOLN
MVC I239PKID4,QPACPKID
MVC I239AANM4,QPACAANM
MVC I239ASCH4,QPACASCH
MVC I239CPU4,QPACTJST
MVC I239ZIIP4,QPACCLS7_zIIP
MVC I239ET4,QPACSCT
MVC I239SPROCS4,QPACSPNS
MVC I239UDFS4,QPACUDNU
MVC I239IDAA4,QPACAACW
*
CH R7,=H'0006'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 5th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN5
*
LH R6,QPACAAFG
STH R6,I239AAFG5
*
MVC I239LOCN5,QPACLOCN
MVC I239COLN5,QPACCOLN
MVC I239PKID5,QPACPKID
MVC I239AANM5,QPACAANM
MVC I239ASCH5,QPACASCH
MVC I239CPU5,QPACTJST
MVC I239ZIIP5,QPACCLS7_zIIP
MVC I239ET5,QPACSCT
MVC I239SPROCS5,QPACSPNS
MVC I239UDFS5,QPACUDNU
MVC I239IDAA5,QPACAACW
*
CH R7,=H'0007'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 6th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN6
*
LH R6,QPACAAFG
STH R6,I239AAFG6
*
MVC I239LOCN6,QPACLOCN
MVC I239COLN6,QPACCOLN
MVC I239PKID6,QPACPKID
MVC I239AANM6,QPACAANM
MVC I239ASCH6,QPACASCH
MVC I239CPU6,QPACTJST
MVC I239ZIIP6,QPACCLS7_zIIP
MVC I239ET6,QPACSCT
MVC I239SPROCS6,QPACSPNS
MVC I239UDFS6,QPACUDNU
MVC I239IDAA6,QPACAACW
*
CH R7,=H'0008'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 7th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN7
*
LH R6,QPACAAFG
STH R6,I239AAFG7
*
MVC I239LOCN7,QPACLOCN
MVC I239COLN7,QPACCOLN
MVC I239PKID7,QPACPKID
MVC I239AANM7,QPACAANM
MVC I239ASCH7,QPACASCH
MVC I239CPU7,QPACTJST
MVC I239ZIIP7,QPACCLS7_zIIP
MVC I239ET7,QPACSCT
MVC I239SPROCS7,QPACSPNS
MVC I239UDFS7,QPACUDNU
MVC I239IDAA7,QPACAACW
*
CH R7,=H'0009'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 8th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN8
*
LH R6,QPACAAFG
STH R6,I239AAFG8
*
MVC I239LOCN8,QPACLOCN
MVC I239COLN8,QPACCOLN
MVC I239PKID8,QPACPKID
MVC I239AANM8,QPACAANM
MVC I239ASCH8,QPACASCH
MVC I239CPU8,QPACTJST
MVC I239ZIIP8,QPACCLS7_zIIP
MVC I239ET8,QPACSCT
MVC I239SPROCS8,QPACSPNS
MVC I239UDFS8,QPACUDNU
MVC I239IDAA8,QPACAACW
*
CH R7,=H'0010'
BL AFTER_QPACS
*
AR R10,R8
*
* Process 9th section
* Pick up length of this section
SR R8,R8
LH R8,0(,R10)
* Move past two-byte length field
LA R10,2(,R10)
*
DROP R10
USING QPAC,R10
*
LH R6,QPACRECN
STH R6,I239RECN9
*
LH R6,QPACAAFG
STH R6,I239AAFG9
*
MVC I239LOCN9,QPACLOCN
MVC I239COLN9,QPACCOLN
MVC I239PKID9,QPACPKID
MVC I239AANM9,QPACAANM
MVC I239ASCH9,QPACASCH
MVC I239CPU9,QPACTJST
MVC I239ZIIP9,QPACCLS7_zIIP
MVC I239ET9,QPACSCT
MVC I239SPROCS9,QPACSPNS
MVC I239UDFS9,QPACUDNU
MVC I239IDAA9,QPACAACW
*
AFTER_QPACS EQU *
* Calculate new record length
CALC_I239_RLEN LA R9,I239_LENGTH
STH R9,I239RLEN
*
* Return record from output area rather than input record
L R1,OUT_BUFFER
B CHANGED
*
*
* Literal pool here
*
LTORG
*
***********************************************************************
* *
* ASSEMBLY DATE EYECATCHER IN MODULE *
* *
***********************************************************************
ICATCHER DC C'ASSEMBLED: '
DC C'&SYSDATC '
DC C'&SYSTIME'
*
***********************************************************************
* *
* BIG DATA AREAS ARE DEFINED HERE AND ADDRESSED WITH ACONS *
* *
***********************************************************************
RECORD_POINTER DS F POINTER TO DATA RECORD
FIRST_RECORD_FLAG DC X'00000001' FIRST RECORD FLAG
REGISTER_SAVE_AREA DS 18F
*
OUT_BUFFER DS F OUTPUT BUFFER ADDRESS
TEMP_STOR DS F TEMPORARY WORKING AREA
*
* DSECT TO MAP PLAN INFO TEMP RECORD
TEMP DSECT
TEMPPACK DS 0PL8 Temporary storage for packed time
DS CL6
TEMPPACK2 DS CL2
TS_LENGTH EQU *-TEMPPACK
****
**** IGNORE DFSORT POSITIONS
****
* Position for DFSORT
RC DSECT
* -------------------
RCRLEN DS H @1 RDW
RCBDW DS H @3
RCTIME DS F @5 SMF Time
RCDATE DS F @9 SMF Date
RCHOUR DS H @13 From SMF Time
RCMIN DS H @15 From SMF Time
RCSEC DS H @17 From SMF Time
RCHUN DS H @19 From SMF Time
RCSMFID DS CL4 @21 From SMF Header
RCSSID DS CL4 @25 From SMF Header
RCAID DS CL8 @29 QWHCAID
RCCV DS 0CL12 @37
FIRST8 DS 0CL8 @37
FIRST4 DS CL4 @37
SECOND4 DS CL4 @41
THIRD4 DS CL4 @45
RCCN DS CL8 @49
RCPLAN DS CL8 @57
RCOPID DS CL8 @65
RCATYP DS F @73 QWHCATYP
RCTOKN DS CL22 @77
RCEUID DS CL16 @99
RCEUTX DS CL32 @115
RCEUWN DS CL18 @147
RCRINV DS F @165
RCWLME DS CL8 @169
*
RCQMDA DS CL8
RCASLN DS XL1 @185
DS XL1
RCIFCID DS H @187
RCAINF DS CL255 @189 QMDAAINF: Has many embedded fields
DS D GUARD DWRD - first byte gets clobbered
RCQWHS DS CL8
RCLWID DS CL24 @465 QWHSLWID
DS D GUARD DWRD
*
RCQLAC DS CL8
RCLOCN DS CL16
RCSQLS DS D @521 <- +2
RCSQLR DS D @529