Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Hello, how are you people?
How can I bring a header to the outrec that appears in every page, but omitting that certain word that I was speaking in the title of this topic?
I give an example
Code: |
//SYMNAMES DD *
NUMTAR,11,19,CH
CUENTA-NRO,126,12,CH
FORIG,43,8,CH
FPRES,84,8,CH
FDEB,110,8,CH
IMPORTE,30,13,BI
IMPORTE-CTA,151,13,BI
IMPORTE-CONSUMO,204,13
//SYSIN DD *
INCLUDE COND=(8,3,SS,EQ,C'ARP,USD')
INREC FIELDS=(1:8,3,
CHANGE=(7,
C'ARP',C'PESOS',
C'USD',C'DOLARES'),
8:NUMTAR,
30:IMPORTE,
45:IMPORTE-CTA,
60:CUENTA-NRO,
73:FORIG,
84:FPRES,
95:FDEB,
105:X)
SORT FIELDS=(1,7,CH,A,11,19,CH,A)
OUTFIL FNAMES=SORTOUT,REMOVECC,LINES=56,
HEADER1=(10:'REVERSAS DIARIAS, FECHA : ',FPRES,
36X), HEADER2=(2:X,/,
2:'my company',96X,'PAGINA:',&PAGE,5X,/,
2:'DESTINO: 1163',99X,'PGM: XLIST',/,
2:X,/),
SECTIONS=(1,7,
HEADER3=(3:X,/,
3:'MONEDA:',1,7,/,X,/,
3:'CUENTA ',17:'TARJETA',36:'F.ORIGEN',47:'F.PRESENT',
58:'F.DEBITO',67:'IMP.CONSUMO',84:'IMP.CUENTA',95:X,/,
3:'----------------------------------------------------------',
61:'------------------------------------'),
TRAILER3=(3:'***********************************************',/,
3:'TOTALES: ',
15:'IMP.CONSUMO: ',
28:TOT=(30,13,ZD,EDIT=(IIIIIII.TT)),
45:'IMP.CUENTA: ',
59:TOT=(45,13,ZD,EDIT=(IIIIIII.TT)),
69:' ')),
OUTREC=(3:60,12,17:8,16,36:73,8,47:84,8,58:95,8,
68:30,13,ZD,EDIT=(IIIIIIT.TT),82:45,13,ZD,EDIT=(IIIIITT.TT),135:X) |
this code will bring the following
Code: |
mycompany
DESTINO: 1163
MONEDA:DOLARES
CUENTA TARJETA F.ORIGEN F.PRESENT F.DEBITO IMP.CO
----------------------------------------------------------------------
xxxxxxxxxxxxxxxxxxx(data=)xxxxxxxxxxxxxxxxxxxxxxxxxxx
|
Code: |
MONEDA:PESOS
CUENTA TARJETA F.ORIGEN F.PRESENT F.DEBITO IMP.CO
----------------------------------------------------------------------
xxxxxxxxxxxxxxxxxxxxx(data)xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
but the problem is that in every new page I would not have the header aboyut account, target, etc, and only the data.
If I add the part of:
Code: |
CUENTA TARJETA F.ORIGEN F.PRESENT F.DEBITO IMP.CO
---------------------------------------------------------------------- |
in the header 3 I will be having in every page the words DOLAR/PESO and it would be sloppy, is there a way to the principal section words (PESOS/DOLAR) to appear only once and not in every page in order that I can make the HEADER 3 only with the real header, that is ------→
Code: |
CUENTA TARJETA F.ORIGEN F.PRESENT F.DEBITO IMP.CO
---------------------------------------------------------------------- |
Coded |
|