IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

HEADER1 error in JCL


IBM Mainframe Forums -> SYNCSORT
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Fri Sep 02, 2016 12:15 pm
Reply with quote

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                                 
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Sep 02, 2016 12:18 pm
Reply with quote

Quote:
33:'|SEQNO='),


What is the comma doing there?
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Fri Sep 02, 2016 12:24 pm
Reply with quote

Hi Peter,
Code:

33:'|SEQNO='),


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=',
                             *
Back to top
View user's profile Send private message
mistah kurtz

Active User


Joined: 28 Jan 2012
Posts: 316
Location: Room: TREE(3). Hilbert's Hotel

PostPosted: Fri Sep 02, 2016 1:00 pm
Reply with quote

DATE1 is not valid on HEADER1. I think you need to use DATENS=(4MD).
Back to top
View user's profile Send private message
pshongal

New User


Joined: 14 Jun 2012
Posts: 96
Location: India

PostPosted: Fri Sep 02, 2016 1:13 pm
Reply with quote

Hello mistah kurtz

Thanks. It worked
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> SYNCSORT

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top