Page 1 of 1

SYNCSORT Parse Error

PostPosted: Fri Aug 01, 2008 12:53 pm
by jayind
I have a ';' delimited variable length file which I would like to change it to a fixed length file. I have used the PARSE statement but getting a systax error.. I have pasted below the error message.. I assume this error is because of the SYNCSORT version.. if this is because of SYNCSORT, is there an alternative way to perform the same task?

Error Message:

1 SYNCSORT FOR Z/OS  1.2.2.3R    U.S. PATENTS: 4210961, 5117495   (C) 2005 SYNCS
  SYSIN :                                                                       
   OUTREC PARSE=(%01=(ENDBEFR=C';',FIXLEN=8),                                   
          *                                                                     
   %02=(ENDBEFR=C';',FIXLEN=3),                                                 
   %03=(ENDBEFR=C';',FIXLEN=3),                                                 
   %04=(ENDBEFR=C';',FIXLEN=6),                                                 
   %05=(FIXLEN=10)),                                                           
   BUILD=(%01,09:%02,12:%03,15:%04,21:%05)                                     
  WER268A  OUTREC STATEMENT  : SYNTAX ERROR                                     
  WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 
  WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE 


Regards,
jayind

Re: SYNCSORT Parse Error

PostPosted: Sat Aug 02, 2008 3:07 am
by dick scherrer
Hello,

You are running Syncsort 1.2x. Parse requires Syncsort 1.3.

Re: SYNCSORT Parse Error

PostPosted: Sat Aug 02, 2008 8:12 am
by MrSpock
jayind wrote:is there an alternative way to perform the same task?


SAS is quite adept at reading and processing delimited files. So is REXX.

Re: SYNCSORT Parse Error

PostPosted: Sat Aug 02, 2008 8:42 am
by dick scherrer
Hello,

If you are willing to write a bit of code, COBOL will also do this.

The UNSTRING statement will do what you require.