Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Apr 14, 2004 3:02 pm Post subject:
Sateesh,
I guess that error is due to the REMOVECC parm. You need syncsort Z/os for that parm to work. It would be great if you can post the entire sysout message.
Since you have an old version of syncsort, you need two steps to get the desired result.
Code:
//*********************************************************************
//* THIS STEP WILL COUNT THE NO OF RECORDS IN A FILE **
//*********************************************************************
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=MYINPUT FILE,
// DISP=SHR
//SORTOUT DD DSN=&TEMP1,
// DISP=(NEW,PASS),
// UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE),
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL NODETAIL,TRAILER1=('TOT:',8:COUNT,80:X)
//*
//*********************************************************************
//* THIS STEP WILL REMOVE THE CARRIAGE CONTROL CHARACTER FROM THE **
//* ABOVE OUTPUT **
//*********************************************************************
//STEP0200 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=&TEMP1,
// DISP=OLD
//SORTOUT DD DSN=OUTPUT FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE),
// RECFM=FB
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(2,80)
/*
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum