Modifying only Trailer record count



Support for NetApp SyncSort for z/OS, Visual SyncSort, SYNCINIT, SYNCLIST and SYNCTOOL

Modifying only Trailer record count

Postby jvinoth » Mon Jul 23, 2012 6:07 pm

Hi skolusu,

I have used your code which is given by you to test but i am getting the syntax error.
says that PARAMETER 'IFTRAIL' IS UNIDENTIFIED


//STEP0100 EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                                   
//SORTIN   DD *                                         
AB 001 2012-07-07 ------------ HEADER                   
AB 100 2012-07-07 ------------ DETAIL RECORD             
AB 200 2012-07-07 ------------ DETAIL RECORD             
AB 002 2012-07-07 0000000005 ---------- TRAILER RECORD   
//SORTOUT  DD SYSOUT=*                                   
//SYSIN    DD *                                         
  SORT FIELDS=COPY                                       
  OUTFIL IFTRAIL=(HD=YES,TRLID=(1,6,CH,EQ,C'AB 002'),   
  TRLUPD=(19:COUNT=(M11,LENGTH=10)))                     
//*     


sysout message:
 SYSIN :                                           
   SORT FIELDS=COPY                               
   OUTFIL FNAMES=OUT1,                             
   IFTRAIL=(HD=YES,TRLID=(1,6,CH,EQ,C'TT 002'),   
   *                                               
   TRLUPD=(19:COUNT=(M11,LENGTH=10)))             
 WER268A  OUTFIL STATEMENT  : SYNTAX ERROR         
 WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000     


please help me solve this.

my code:
//STEP0100 EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                                   
//SORTIN   DD DISP=SHR,DSN=*********** 
//OUT1  DD DSN=****************,                     
//   DISP=(NEW,CATLG,DELETE),                           
//   DCB=(RECFM=FB,LRECL=80,BLKSIZE=0),                 
//   SPACE=(TRK,(3,3))                                   
//SYSIN    DD *                                         
  SORT FIELDS=COPY                                       
  OUTFIL FNAMES=OUT1,                                   
  IFTRAIL=(HD=YES,TRLID=(1,6,CH,EQ,C'TT 002'),           
  TRLUPD=(19:COUNT=(M11,LENGTH=10)))                     
/*                                                       

Input file i gave which one you have mentioned.

thanks.
johny.
jvinoth
 
Posts: 132
Joined: Fri Nov 18, 2011 3:13 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Modifying only Trailer record count

 

Modifying only Trailer record count

Postby BillyBoyo » Mon Jul 23, 2012 6:40 pm

You have Syncsort. Kolusu works for IBM's DFSORT and it would be unfair to expect his aid with questions for a competitor product.

Please consult your documentation to see whether IFTRAIL exists in Syncsort.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Modifying only Trailer record count

Postby dick scherrer » Mon Jul 23, 2012 7:08 pm

Hello,

IFTRAIL is not mentioned in the current Syncsort documentation. . .

If you post some sample input data and the output you want when this input is processed, someone may be able to show an alternative. Also post which release/level of Syncsort is being used.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6284
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 92 times


Return to Syncsort/Synctool

 


  • Related topics
    Replies
    Views
    Last post