Вы находитесь на странице: 1из 10

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

5, 2013 (2013/156) 16:37:42 PAGE 1


SYSUT1=CMN.ABASE.SRC(PCPE069),SYSUT2=CMN.STGA.AH$.017528.SRC(PCPE069)
0 . . .
*----------------------------------------------------------------*
O N E 11
* L O G D E M O D I F I C A C I O N E S *
O N E 12
*----------------------------------------------------------------*
O N E 13
* MARCA AUTOR FECHA DESCRIPCION *
O N E 14
* ----------- ------- ------- --------------------------------- *
O N E 15
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D * * * * *
DIF O N E 16 +
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I * FSW01 * CDA *28MAY13* MODIFICACION SOLICITADA *
DIF T W O 16 +
I * POR PET 28601 *
DIF T W O 17 +
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

*----------------------------------------------------------------*
O N E 17
*----------------------------------------------------------------*
O N E 18
* E N V I R O N M E N T D I V I S I O N *
O N E 19
*----------------------------------------------------------------*
O N E 20
ENVIRONMENT DIVISION.
O N E 21
. . .
FD E1DQENT0
O N E 51
RECORDING MODE IS F
O N E 52
LABEL RECORD ARE STANDARD
O N E 53
BLOCK CONTAINS 0 RECORDS
O N E 54
DATA RECORD IS REG-E1DQENT0.
O N E 55
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 01 REG-E1DQENT0 PIC X(228).
DIF O N E 56 +
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 *01 REG-E1DQENT0 PIC X(228).
DIF T W O 57 +
I FSW01 01 REG-E1DQENT0 PIC X(232).
DIF T W O 58 +
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

O N E 57
*-> ARCHIVO DE SALIDA S1DQSAL0
O N E 58

O N E 59
FD S1DQSAL0
O N E 60
RECORDING MODE IS F
O N E 61
. . .
10 WSV-E1-CERTIF PIC X(17).
O N E 175
10 WSV-E1-MOT-EMBAR PIC X(35).
O N E 176
10 WSV-E1-IMP-EMBAR PIC S9(13)V9(02) COMP-3.
O N E 177
10 WSV-E1-ESTADO PIC X(50).
O N E 178
10 WSV-E1-DESTINO PIC X(50).
O N E 179
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
I FSW01 10 WSV-E1-CTRORESP PIC X(04).
DIF T W O 182+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

O N E 180
*-> ESTRUCTURA DEL ARCHIVO DE ENTRADA
O N E 181

O N E 182
05 WSV-REG-E1DQENT0-ANT.
O N E 183
10 WSV-E1-BANCO-ANT PIC X(30).
O N E 184
. . .
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:37:42 PAGE 2
SYSUT1=CMN.ABASE.SRC(PCPE069),SYSUT2=CMN.STGA.AH$.017528.SRC(PCPE069)
0 10 WSV-E1-CERTIF-ANT PIC X(17).
O N E 188
10 WSV-E1-MOT-EMBAR-ANT PIC X(35).
O N E 189
10 WSV-E1-IMP-EMBAR-ANT PIC S9(13)V9(02) COMP-3.
O N E 190
10 WSV-E1-ESTADO-ANT PIC X(50).
O N E 191
10 WSV-E1-DESTINO-ANT PIC X(50).
O N E 192
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
I FSW01 10 WSV-E1-CTRORESP-ANT PIC X(04).
DIF T W O 196+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

O N E 193
05 WSV-ULTIMO-GRABADO.
O N E 194
10 WSV-E1-BANCO-ULT PIC X(30).
O N E 195
10 WSV-E1-FILIAL-ULT PIC X(03).
O N E 196
10 WSV-E1-DESCR-FIL-ULT PIC X(25).
O N E 197
. . .
10 WSV-E1-CERTIF-ULT PIC X(17).
O N E 199
10 WSV-E1-MOT-EMBAR-ULT PIC X(35).
O N E 200
10 WSV-E1-IMP-EMBAR-ULT PIC S9(13)V9(02) COMP-3.
O N E 201
10 WSV-E1-ESTADO-ULT PIC X(50).
O N E 202
10 WSV-E1-DESTINO-ULT PIC X(50).
O N E 203
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
I FSW01 10 WSV-E1-CTRORESP-ULT PIC X(04).
DIF T W O 208+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

O N E 204
*-> ESTRUCTURA DEL LISTADO
O N E 205

O N E 206
05 WSV-REG-S1DQSAL0 PIC X(132).
O N E 207
05 WSV-S1-TIT-L1.
O N E 208
. . .
10 FILLER PIC X(09) VALUE
O N E 214
'FECHA : '.
O N E 215
10 WSV-S1-TIT-FECHA PIC X(10).
O N E 216

O N E 217
05 WSV-S1-TIT-L2.
O N E 218
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 10 WSV-S1-TIT-FILIAL PIC X(03).
DIF O N E 219+
D 10 FILLER PIC X(03) VALUE ' - '.
DIF O N E 220+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 10 WSV-S1-TIT-FILIAL PIC X(03).
DIF T W O 224+
I FSW01 10 WSV-S1-TIT-FILIAL PIC X(04).
DIF T W O 225+
I FSW01 * 10 FILLER PIC X(03) VALUE ' - '.
DIF T W O 226+
I FSW01 10 FILLER PIC X(02) VALUE ' -'.
DIF T W O 227+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

10 WSV-S1-TIT-DESCR-FIL PIC X(25).


O N E 221
10 FILLER PIC X(20) VALUE SPACES.
O N E 222
10 WSV-S1-TIT-DESCRIP PIC X(50).
O N E 223
10 FILLER PIC X(12) VALUE SPACES.
O N E 224
10 FILLER PIC X(09) VALUE
O N E 225
. . .
10 FILLER PIC X(132) VALUE ALL '-'.
O N E 248
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:37:42 PAGE 3
SYSUT1=CMN.ABASE.SRC(PCPE069),SYSUT2=CMN.STGA.AH$.017528.SRC(PCPE069)
0
O N E 249
05 WSV-S1-TIT-L6.
O N E 250
10 FILLER PIC X(11) VALUE
O N E 251
'CERTIFICADO'.
O N E 252
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 10 FILLER PIC X(19) VALUE SPACES.
DIF O N E 253+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 10 FILLER PIC X(19) VALUE SPACES.
DIF T W O 260+
I FSW01 10 FILLER PIC X(23) VALUE SPACES.
DIF T W O 261+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

10 FILLER PIC X(17) VALUE


O N E 254
'MOTIVO DE EMBARGO'.
O N E 255
10 FILLER PIC X(23) VALUE SPACES.
O N E 256
10 FILLER PIC X(17) VALUE
O N E 257
'IMPORTE EMBARGADO'.
O N E 258
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 10 FILLER PIC X(13) VALUE SPACES.
DIF O N E 259+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 10 FILLER PIC X(13) VALUE SPACES.
DIF T W O 267+
I FSW01 10 FILLER PIC X(09) VALUE SPACES.
DIF T W O 268+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

10 FILLER PIC X(07) VALUE 'ESTADO'.


O N E 260

O N E 261
05 WSV-S1-LINEAS.
O N E 262
10 FILLER PIC X(20) VALUE ALL '-'.
O N E 263
10 FILLER PIC X(10) VALUE SPACES.
O N E 264
. . .
10 FILLER PIC X(20) VALUE ALL '-'.
O N E 267
10 FILLER PIC X(10) VALUE SPACES.
O N E 268
10 FILLER PIC X(20) VALUE ALL '-'.
O N E 269

O N E 270
05 WSV-S1-DATOS.
O N E 271
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 10 WSV-S1-DAT-CERTIF PIC X(17).
DIF O N E 272+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 10 WSV-S1-DAT-CERTIF PIC X(17).
DIF T W O 281+
I FSW01 10 WSV-S1-DAT-CERTIF PIC X(21).
DIF T W O 282+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

10 FILLER PIC X(13) VALUE SPACES.


O N E 273
10 WSV-S1-DAT-MOT-EMBAR PIC X(35).
O N E 274
10 FILLER PIC X(09) VALUE SPACES.
O N E 275
10 WSV-S1-DAT-IMP-EMBAR PIC ------------9.99.
O N E 276
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 10 FILLER PIC X(10) VALUE SPACES.
DIF O N E 277+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 10 FILLER PIC X(10) VALUE SPACES.
DIF T W O 287+
I FSW01 10 FILLER PIC X(06) VALUE SPACES.
DIF T W O 288+
++++++++|+++.+<++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:37:42 PAGE 4
SYSUT1=CMN.ABASE.SRC(PCPE069),SYSUT2=CMN.STGA.AH$.017528.SRC(PCPE069)
0
10 WSV-S1-DAT-ESTADO PIC X(50).
O N E 278

O N E 279
05 WSV-TOT-FILIAL.
O N E 280
10 FILLER PIC X(17) VALUE
O N E 281
'* TOTAL FILIAL '.
O N E 282
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D 10 WSV-S1-FILIAL PIC X(03).
DIF O N E 283+
D 10 FILLER PIC X(53) VALUE ': '.
DIF O N E 284+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * 10 WSV-S1-FILIAL PIC X(03).
DIF T W O 294+
I FSW01 10 WSV-S1-FILIAL PIC X(04).
DIF T W O 295+
I FSW01 * 10 FILLER PIC X(53) VALUE ': '.
DIF T W O 296+
I FSW01 10 FILLER PIC X(52) VALUE ': '.
DIF T W O 297+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

10 WSV-S1-TOT-FILIAL PIC -------------9.99.


O N E 285

O N E 286
05 WSV-FIN-LISTADO.
O N E 287
10 FILLER PIC X(65) VALUE ALL '*'.
O N E 288
10 FILLER PIC X(13) VALUE
O N E 289
. . .
* 210000-PROC-FILIAL. *
O N E 445
* SE REALIZA EL CORTE DE CONTROL POR FILIAL. *
O N E 446
*----------------------------------------------------------------*
O N E 447
210000-PROC-FILIAL.
O N E 448
O N E 449
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D PERFORM UNTIL WSV-E1-FILIAL NOT = WSV-E1-FILIAL-ANT
DIF O N E 450+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * PERFORM UNTIL WSV-E1-FILIAL NOT = WSV-E1-FILIAL-ANT
DIF T W O 463+
I FSW01 PERFORM UNTIL WSV-E1-CTRORESP NOT = WSV-E1-CTRORESP-ANT
DIF T W O 464+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

OR WSS-FS-E1DQENT0-EOF
O N E 451
PERFORM 903000-LISTAR
O N E 452
MOVE WSV-REG-E1DQENT0-ANT TO WSV-ULTIMO-GRABADO
O N E 453
MOVE WSV-REG-E1DQENT0 TO WSV-REG-E1DQENT0-ANT
O N E 454
PERFORM 953000-LEER-E1DQENT0
O N E 455
. . .

O N E 476
INITIALIZE REG-S1DQSAL0
O N E 477
PERFORM 954000-GRABAR-S1DQSAL0
O N E 478

O N E 479
INITIALIZE REG-S1DQSAL0
O N E 480
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D MOVE WSV-E1-FILIAL-ANT TO WSV-S1-FILIAL
DIF O N E 481+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * MOVE WSV-E1-FILIAL-ANT TO WSV-S1-FILIAL
DIF T W O 495+
I FSW01 MOVE WSV-E1-CTRORESP-ANT TO WSV-S1-FILIAL
DIF T W O 496+
++++++++|+++.+<++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:37:42 PAGE 5
SYSUT1=CMN.ABASE.SRC(PCPE069),SYSUT2=CMN.STGA.AH$.017528.SRC(PCPE069)
0 MOVE WSA-ACUM-FILIAL TO WSV-S1-TOT-FILIAL
O N E 482
MOVE WSV-TOT-FILIAL TO REG-S1DQSAL0
O N E 483
PERFORM 954000-GRABAR-S1DQSAL0
O N E 484
O N E 485
INITIALIZE WSA-ACUM-FILIAL
O N E 486
. . .
220000-GRABAR-ULT-REG.
O N E 494

O N E 495
IF WSV-REG-E1DQENT0 NOT = WSV-ULTIMO-GRABADO
O N E 496
IF (WSA-LINEAS-GRABADAS + WSC-LINEAS-DET-TOT) >
O N E 497
WSC-MAX-LINEAS
O N E 498
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D OR WSV-E1-FILIAL-ULT NOT = WSV-E1-FILIAL-ANT
DIF O N E 499+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * OR WSV-E1-FILIAL-ULT NOT = WSV-E1-FILIAL-ANT
DIF T W O 514+
I FSW01 OR WSV-E1-CTRORESP-ULT NOT = WSV-E1-CTRORESP-ANT
DIF T W O 515+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

PERFORM 902000-GRABAR-CABERCERA
O N E 500
PERFORM 903000-LISTAR
O N E 501
PERFORM 220000-GRABAR-TOTALES
O N E 502
ELSE
O N E 503
PERFORM 903000-LISTAR
O N E 504
. . .
*----------------------------------------------------------------*
O N E 588
902200-IMPRIMIR-TITULOS.
O N E 589

O N E 590
ADD WSC-1 TO WSA-NUM-HOJA
O N E 591
MOVE WSV-E1-BANCO TO WSV-S1-TIT-BANCO
O N E 592
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D MOVE WSV-E1-FILIAL TO WSV-S1-TIT-FILIAL
DIF O N E 593+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * MOVE WSV-E1-FILIAL TO WSV-S1-TIT-FILIAL
DIF T W O 609+
I FSW01 MOVE WSV-E1-CTRORESP TO WSV-S1-TIT-FILIAL
DIF T W O 610+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

MOVE WSV-E1-DESCR-FIL TO WSV-S1-TIT-DESCR-FIL


O N E 594
MOVE WSV-E1-DESTINO TO WSV-S1-TIT-DESCRIP
O N E 595
MOVE WSV-FEC-EDT TO WSV-S1-TIT-EMITIDO
O N E 596
MOVE WSV-HORA-EDT TO WSV-S1-TIT-HORA
O N E 597
MOVE WSA-NUM-HOJA TO WSV-S1-TIT-PAGINA
O N E 598
. . .

O N E 628
INITIALIZE WSV-S1-DATOS
O N E 629

O N E 630
PERFORM 903100-VERIFICAR-CABECERA
O N E 631

O N E 632
0++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++
D MOVE WSV-E1-CERTIF-ANT TO WSV-S1-DAT-CERTIF
DIF O N E 633+
--------|---.----1----.----2----.----3----.----4----.----5----.----6----.----
7----.----8---------------------
I FSW01 * MOVE WSV-E1-CERTIF-ANT TO WSV-S1-DAT-CERTIF
DIF T W O 650+
I FSW01 MOVE WSV-E1-CERTIF-ANT(1:3) TO WSV-S1-DAT-CERTIF(1:3)
DIF T W O 651+
1 S E R C M P A R (MVS - 862 - 20111202) 2 TEXTONLY WEDNESDAY JUNE
5, 2013 (2013/156) 16:37:42 PAGE 6
SYSUT1=CMN.ABASE.SRC(PCPE069),SYSUT2=CMN.STGA.AH$.017528.SRC(PCPE069)
0I FSW01 MOVE WSV-E1-FILIAL-ANT TO WSV-S1-DAT-CERTIF(4:3)
DIF T W O 652+
I FSW01 MOVE '-' TO WSV-S1-DAT-CERTIF(7:1)
DIF T W O 653+
I FSW01 MOVE WSV-E1-CERTIF-ANT(4:14) TO WSV-S1-DAT-CERTIF(8:14)
DIF T W O 654+
I
DIF T W O 655+
++++++++|+++.+<++1++++.++++2++++.++++3++++.++++4++++.++++5++++.++++6++++.++++7+>+
+.++++8+++++++++++++++++++++

MOVE WSV-E1-MOT-EMBAR-ANT TO WSV-S1-DAT-MOT-EMBAR


O N E 634
MOVE WSV-E1-IMP-EMBAR-ANT TO WSV-S1-DAT-IMP-EMBAR
O N E 635
MOVE WSV-E1-ESTADO-ANT TO WSV-S1-DAT-ESTADO
O N E 636

O N E 637
MOVE WSV-S1-DATOS TO REG-S1DQSAL0
O N E 638
0SER71I - END OF TEXT ON FILE SYSUT1
0SER72I - END OF TEXT ON FILE SYSUT2
-SER75I - RECORDS PROCESSED: SYSUT1(856)/SYSUT2(878),DIFFERENCES(15,0,22)
EXPLANATION - 15 RECORDS DIFFER THAT SYNCHRONIZED
TOGETHER
0 RECORDS WERE CONSIDERED INSERTED ON
SYSUT1
22 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:37:42 PAGE 7
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:37:42 - CONDITION CODE ON EXIT: 4