Page 1 of 1

SYNCSORT: Problem with OUTFIL CONVERT

PostPosted: Thu Sep 11, 2008 6:41 pm
by pmerc8888
Greetings,

Could someone kindly help me figure out what I'm doing wrong. Syncsort version is: 1.2.2.1R

Following is part of the messages in SYSOUT:
SYSIN :                                                           
 SORT FIELDS=(5,6,CH,A)                                           
 OUTFIL OUTREC=(1:5,100),CONVERT                                 
WER164B  6,904K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
WER164B     0 BYTES RESERVE REQUESTED, 1,012K BYTES USED         
WER146B  12K BYTES OF EMERGENCY SPACE ALLOCATED                   
WER108I  SORTIN   : RECFM=VB   ; LRECL=   374; BLKSIZE= 27998     
WER110I  SORTOUT  : RECFM=FB   ; LRECL=   120; BLKSIZE= 27960     
WER247A  SORTOUT  HAS INCOMPATIBLE LRECL                         
WER425A  CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN   


Following is what the jobstep I'm executing kind of looks like:
//JS010    EXEC PGM=SORT                           
//SYSOUT    DD SYSOUT=*                             
//SORTOUT   DD DSN=OUTPUT,     
//             DISP=(NEW,CATLG,DELETE),             
//             UNIT=SYSDA,                         
//             SPACE=(CYL,(20,20),RLSE),           
//             DCB=(RECFM=FB,LRECL=120,BLKSIZE=0)   
//*                                                 
//SORTIN    DD DISP=SHR,DSN=IN1
//          DD DISP=SHR,DSN=IN2
//          DD DISP=SHR,DSN=IN3
//SYSIN    DD *                                     
 SORT FIELDS=(5,6,CH,A)                             
 OUTFIL OUTREC=(1:5,100),CONVERT                   
/*                                                 


Thanks for your time.

P

Re: SYNCSORT: Problem with OUTFIL CONVERT

PostPosted: Mon Sep 15, 2008 9:58 pm
by Alissa Margulies
pmerc8888,

You are specifying an LRECL of 120 in the DCB attributes for SORTOUT, yet you are only OUTRECing 100. This is causing the conflict. Removing the DCB you have hard-coded in the JCL for SORTOUT should resolve this issue.

Regards,

Re: SYNCSORT: Problem with OUTFIL CONVERT

PostPosted: Wed Sep 17, 2008 12:00 am
by pmerc8888
Thanks heaps, Alissa.

I tried specifying LRECL=100 and removing the DCB. As you would've expected, both worked.

:),
P