You are on page 1of 8

1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE

5, 2013 (2013/156) 16:38:31 PAGE 1


SYSUT1=CMN.ABASE.SRC(PIPAH56),SYSUT2=CMN.STGA.AH$.017528.SRC(PIPAH56)
0 . . .
* PROGRAMA PIPAH56. *
O N E 14
* *
O N E 15
* 01.07.99 *ARANZA * CREACION DEL PROGRAMA *
O N E 16
******************************************************************
O N E 17
JMV01 * 20.05.10 *VIVOT * SE AUMENTA EL TAMAO DEL VECTOR *
O N E 18
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
I FSW01 * 28.05.13 *CDA INF * MODIFICACION SOLICITADA POR PET 28601 *
DIF T W O 19 +
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

******************************************************************
O N E 19

O N E 20
******************************************************************
O N E 21
* *
O N E 22
* E N V I R O N M E N T D I V I S I O N *
O N E 23
. . .
03 CAH05011-MONEDA PIC X(2).
O N E 79
03 CAH05011-PLAZO PIC S9(3) COMP-3.
O N E 80
03 CAH05011-IMPOMOV PIC S9(13)V99 COMP-3.
O N E 81
03 CAH05011-FEVALOR PIC X(8).
O N E 82
03 CAH05011-FEVENFIN PIC X(8).
O N E 83
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
I FSW01 03 WSV-CTRORESP PIC X(04).
DIF T W O 85 +
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

*
O N E 84
FD FICHERO-FECHAS
O N E 85
LABEL RECORD IS STANDARD
O N E 86
DATA RECORD IS REG-FGT000E-FECHAS
O N E 87
RECORDING MODE IS F
O N E 88
. . .
'FECHA :'.
O N E 153
07 TIT-FECHA PIC X(10).
O N E 154

O N E 155
01 TITULOS-2 .
O N E 156

O N E 157
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 07 TIT-SUCU PIC X(3).
DIF O N E 158+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 07 TIT-SUCU PIC X(3).
DIF T W O 160+
I FSW01 07 TIT-SUCU PIC X(4).
DIF T W O 161+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

07 FILLER PIC X(3) VALUE ' - '.


O N E 159
07 TIT-DES-SUCU PIC X(20).
O N E 160
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 07 FILLER PIC X(61) VALUE SPACES.
DIF O N E 161+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 07 FILLER PIC X(61) VALUE SPACES.
DIF T W O 164+
I FSW01 07 FILLER PIC X(60) VALUE SPACES.
DIF T W O 165+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:38:31 PAGE 2
SYSUT1=CMN.ABASE.SRC(PIPAH56),SYSUT2=CMN.STGA.AH$.017528.SRC(PIPAH56)
0
07 FILLER PIC X(15) VALUE SPACES.
O N E 162
07 FILLER PIC X(12) VALUE SPACES.
O N E 163
07 FILLER PIC X(08) VALUE
O N E 164
'PAGINA :'.
O N E 165
07 TIT-PAGINA PIC ZZZZ9.
O N E 166
. . .
01 GUION PIC X(132) VALUE ALL '-'.
O N E 187

O N E 188
01 TITULO-5.
O N E 189

O N E 190
07 FILLER PIC X(11) VALUE 'FILIAL :'.
O N E 191
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 07 TIT-FILIAL PIC XXX.
DIF O N E 192+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 07 TIT-FILIAL PIC XXX.
DIF T W O 196+
I FSW01 07 TIT-FILIAL PIC XXXX.
DIF T W O 197+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

07 FILLER PIC X(3) VALUE ' - '.


O N E 193
07 TIT-DES-FILIAL PIC X(40).
O N E 194
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 07 FILLER PIC X(76) VALUE SPACES.
DIF O N E 195+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 07 FILLER PIC X(76) VALUE SPACES.
DIF T W O 200+
I FSW01 07 FILLER PIC X(75) VALUE SPACES.
DIF T W O 201+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

O N E 196
01 TITULO-6.
O N E 197
07 FILLER PIC X(11) VALUE 'SERVICIO :'.
O N E 198
07 TIT-CODISER PIC XX.
O N E 199
07 FILLER PIC X(3) VALUE ' - '.
O N E 200
. . .
05 CTN-PRO-REF PIC S9(5)V99 COMP-3 VALUE ZERO.
O N E 332
05 CTN-PRO-PAC PIC S9(5)V99 COMP-3 VALUE ZERO.
O N E 333
05 CTN-PRO-DIF PIC S9(5)V99 COMP-3 VALUE ZERO.
O N E 334

O N E 335
* ------------ CAMPOS DE CORTE ------------------------
O N E 336
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 05 ANT-OFIAPE PIC XXX.
DIF O N E 337+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 05 ANT-OFIAPE PIC XXX.
DIF T W O 343+
I FSW01 05 ANT-OFIAPE PIC XXXX.
DIF T W O 344+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

05 ANT-CODISER PIC 99.


O N E 338
05 ANT-MONEDA PIC XX.
O N E 339
05 ANT-TIPO-CERT PIC XXX.
O N E 340

O N E 341

O N E 342
. . .
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:38:31 PAGE 3
SYSUT1=CMN.ABASE.SRC(PIPAH56),SYSUT2=CMN.STGA.AH$.017528.SRC(PIPAH56)
0 WS-VENCI
O N E 705
WS-SALACT
O N E 706
MOVE 'S' TO SL-PRIMERA-VEZ-SW
O N E 707
PERFORM 19-READ-ENTRADA
O N E 708
THRU 19-READ-ENTRADA-EXIT.
O N E 709
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D MOVE CAH05011-OFIAPE TO ANT-OFIAPE.
DIF O N E 710+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * MOVE CAH05011-OFIAPE TO ANT-OFIAPE.
DIF T W O 717+
I FSW01 MOVE WSV-CTRORESP TO ANT-OFIAPE.
DIF T W O 718+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

MOVE CAH05011-MONEDA TO ANT-MONEDA


O N E 711
MOVE CAH05011-CODISER TO ANT-CODISER.
O N E 712
MOVE CAH05011-TIPOCERT TO ANT-TIPO-CERT.
O N E 713
PERFORM 211-TITULOS THRU 211-TITULOS-EXIT.
O N E 714

O N E 715
. . .
PERFORM 221-FINAL THRU 221-FINAL-EXIT.
O N E 980
19-READ-ENTRADA-EXIT. EXIT.
O N E 981
*
O N E 982
2-PROCESO-PROGRAMA.
O N E 983

O N E 984
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D IF CAH05011-OFIAPE = ANT-OFIAPE
DIF O N E 985+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * IF CAH05011-OFIAPE = ANT-OFIAPE
DIF T W O 993+
I FSW01 IF WSV-CTRORESP = ANT-OFIAPE
DIF T W O 994+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

IF CAH05011-CODISER = ANT-CODISER
O N E 986
IF CAH05011-MONEDA = ANT-MONEDA
O N E 987
IF CAH05011-TIPOCERT = ANT-TIPO-CERT
O N E 988
PERFORM 21-ACUMULO-GRABO THRU
O N E 989
21-ACUMULO-GRABO-EXIT
O N E 990
. . .
IF CAH05011-PLAZO >= 90
O N E 1049
MOVE '90 A MAS DIAS' TO WS-RANGO
O N E 1050
MOVE 6 TO WS-INDICE
O N E 1051
END-IF.
O N E 1052
IF (WS-INDICE NOT = WS-INDICE-ANT OR
O N E 1053
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D CAH05011-OFIAPE NOT = ANT-OFIAPE OR
DIF O N E 105+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * CAH05011-OFIAPE NOT = ANT-OFIAPE OR
DIF T W O 106+
I FSW01 WSV-CTRORESP NOT = ANT-OFIAPE OR
DIF T W O 106+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

CAH05011-CODISER NOT = ANT-CODISER OR


O N E 1055
CAH05011-MONEDA NOT = ANT-MONEDA OR
O N E 1056
CAH05011-TIPOCERT NOT = ANT-TIPO-CERT) AND
O N E 1057
NOT PRIMERA-VEZ
O N E 1058
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:38:31 PAGE 4
SYSUT1=CMN.ABASE.SRC(PIPAH56),SYSUT2=CMN.STGA.AH$.017528.SRC(PIPAH56)
0 MOVE WS-RANGO-ANT TO DET-RANGO
O N E 1059
. . .
MOVE ZEROES TO CTN-TOT-VENCI-M.
O N E 1288
MOVE ZEROES TO CTN-TOT-ANULA-M.
O N E 1289
MOVE CAH05011-TIPOCERT TO ANT-TIPO-CERT.
O N E 1290
MOVE CAH05011-MONEDA TO ANT-MONEDA .
O N E 1291
MOVE CAH05011-CODISER TO ANT-CODISER.
O N E 1292
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D MOVE CAH05011-OFIAPE TO ANT-OFIAPE.
DIF O N E 129+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * MOVE CAH05011-OFIAPE TO ANT-OFIAPE.
DIF T W O 130+
I FSW01 MOVE WSV-CTRORESP TO ANT-OFIAPE.
DIF T W O 130+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

PERFORM 211-TITULOS THRU 211-TITULOS-EXIT.


O N E 1294
25-CORTE-OFIAPE-EXIT. EXIT.
O N E 1295

O N E 1296
221-FINAL.
O N E 1297
WRITE FD-LINEA FROM GUION AFTER 2.
O N E 1298
. . .

O N E 1330
211-TITULOS.
O N E 1331
MOVE 9 TO WS-CANT-LINEAS.
O N E 1332
MOVE SPACES TO FD-LINEA.
O N E 1333
WRITE FD-LINEA FROM TITULOS-1 AFTER PAGE.
O N E 1334
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D MOVE ANT-OFIAPE TO TIT-SUCU
DIF O N E 133+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * MOVE ANT-OFIAPE TO TIT-SUCU
DIF T W O 134+
I FSW01 MOVE ANT-OFIAPE(2:3) TO TIT-SUCU
DIF T W O 134+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

TIT-FILIAL.
O N E 1336
SET IND-SUC TO 1.
O N E 1337
SEARCH T-SUCU-OCC
O N E 1338
AT END
O N E 1339
MOVE SPACES TO TIT-DES-SUCU
O N E 1340
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D WHEN T-OFIAPE(IND-SUC) = ANT-OFIAPE
DIF O N E 134+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * WHEN T-OFIAPE(IND-SUC) = ANT-OFIAPE
DIF T W O 135+
I FSW01 WHEN T-OFIAPE(IND-SUC) = ANT-OFIAPE(2:3)
DIF T W O 135+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

MOVE T-DESC-OFIAPE(IND-SUC) TO TIT-DES-SUCU


O N E 1342
TIT-DES-FILIAL
O N E 1343
END-SEARCH.
O N E 1344
ADD 1 TO WS-PAGINA.
O N E 1345
MOVE WS-PAGINA TO TIT-PAGINA.
O N E 1346
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:38:31 PAGE 5
SYSUT1=CMN.ABASE.SRC(PIPAH56),SYSUT2=CMN.STGA.AH$.017528.SRC(PIPAH56)
0SER71I - END OF TEXT ON FILE SYSUT1
0SER72I - END OF TEXT ON FILE SYSUT2
-SER75I - RECORDS PROCESSED: SYSUT1(1589)/SYSUT2(1602),DIFFERENCES(11,0,13)
EXPLANATION - 11 RECORDS DIFFER THAT SYNCHRONIZED
TOGETHER
0 RECORDS WERE CONSIDERED INSERTED ON
SYSUT1
13 RECORDS WERE CONSIDERED INSERTED ON
SYSUT2
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:38:31 PAGE 6
SYSUT1=CMN.ABASE.SRC,SYSUT2=CMN.STGA.AH$.017528.SRC
0SER71I - END OF DIRECTORY ON FILE SYSUT1
0SER72I - END OF DIRECTORY ON FILE SYSUT2
0SER78I - MEMBERS PROCESSED: SYSUT1(22957)/SYSUT2(11),DIFFERENCES(1),REJECTED BY
FILTERS: SYSUT1(22956)/SYSUT2(10)
0SER80I - TIME OF DAY AT END OF JOB: 16:38:31 - CONDITION CODE ON EXIT: 4