pshongal
New User
Joined: 14 Jun 2012 Posts: 96 Location: India
|
|
|
|
I need a report in below format
Code: |
H|Feeder=abbb|Date=YYYYMMDD|SEQNO=1001
D|Detail records goes here
T|Counter=1
|
I am getting error at header part. It goes well if I remove header.
Code: |
SYNCSORT FOR Z/OS 2.1.2.0R U.S. PATENTS: 4210961, 5117495 (C) 2014 SYNCSO
AMERICAN EXPRESS z/OS 2.1.0
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 1C7E7, MODEL 2964 606 LICEN
ZPSort LICENSE/PRODUCT EXPIRATION DATE: 02 DEC 2019
SYSIN :
SORT FIELDS=COPY
OUTFIL REMOVECC,
HEADER1=(1:'H|Feeder=CCCAlerts|Date=',
*
25:&DATE1,
33:'|SEQNO='),
BUILD=(1:C'D',2:C'|CardNumber=',14:17,15,29:C'|CountryId=',
40:C'XXX',43:C'|aaaaaaa=28',54:C'|vvvvvv=',62:845,6,
68:C'|sumAmt=',76:86,6,PD,EDIT=(TTTTTTTTTT),
86:C'|soName=',94:96,25,119:C'|soCity=',128:121,21,
149:C'|sumDate=',159:76,10),
TRAILER1=('T|Counter=',COUNT=(EDIT=(TTTTTTTTT)))
WER813I INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED
WER268A OUTFIL STATEMENT : SYNTAX ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
|
|
|
pshongal
New User
Joined: 14 Jun 2012 Posts: 96 Location: India
|
|
|
|
Hi Peter,
comma is required there at the end of header definition. If I remove it shows error in all the places of details and trailer records.
the error it is showing now is for the comma in first line of header.
Code: |
(1:'H|Feeder=CCCAlerts|Date=',
*
|
|
|