MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorting in to Multiple files.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
krk123
Beginner


Joined: 03 Jun 2003
Posts: 58
Topics: 19

PostPosted: Thu Mar 10, 2005 8:56 pm    Post subject: Sorting in to Multiple files. Reply with quote

Hi,
I am splitting a file in to file 1 and file 2. The original file is 1125 bytes and file 1 and file 2 are 1500bytes. I am getting the following error.

SORTOF1 HAS INCOMPATIBLE LRECL
SORTOF2 HAS INCOMPATIBLE LRECL

When I tested the samething with 1502 it worked fine and file1 and file2 were splitted. Could someone please advise on why its not working with 1125 ?
Thanks.
Back to top
View user's profile Send private message
hari_uss
Beginner


Joined: 19 Dec 2002
Posts: 78
Topics: 6
Location: Trivandrum, India

PostPosted: Fri Mar 11, 2005 5:51 am    Post subject: Reply with quote

krk123,

It is not clear on what conditions you are trying to split the file. Also you have not mentioned how you want to fill the last 375 bytes of file1 and file2. So I am making following assumptions.

1. You just want to split the files evenly.
2. You want the last 375 bytes of the output files as spaces.

Try this..

Code:

//SORT1    EXEC PGM=SORT                                   
//SYSOUT   DD  SYSOUT=*                                         
//SORTIN   DD  DSN=XXXXYYY.MVSF1,DISP=SHR                       
//OUT1     DD  DSN=XXXXYYY.SPLIT1,DISP=(,CATLG),UNIT=SYSDA,     
//             SPACE=(TRK,(1,1),RLSE)
//OUT2     DD  DSN=XXXXYYY.SPLIT2,DISP=(,CATLG),UNIT=SYSDA,     
//             SPACE=(TRK,(1,1),RLSE)
//SYSIN    DD  *                                               
  SORT FIELDS=COPY                                               
  OUTFIL FNAMES=(OUT1,OUT2),SPLIT,                               
  OUTREC=(1,1125,375X)                                           
/*                                                             


Regards,
Hari.
Back to top
View user's profile Send private message Send e-mail
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Mar 11, 2005 11:22 am    Post subject: Reply with quote

For the record, those are Syncsort error messages, so I can't help you.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gharisankar
Beginner


Joined: 10 Jul 2004
Posts: 19
Topics: 3
Location: C/O Platform - Mainframe

PostPosted: Fri Mar 11, 2005 11:51 am    Post subject: Reply with quote

Hi krk123,
If your Input is 1125 , your SORTOUT should be less than or equal to 1125. That's the reason is worked for LRECL 1502.
_________________
Regards
Hari Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group