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 

Split header and trailer file into several files.
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Sat Oct 27, 2007 3:40 pm    Post subject: Reply with quote

Shuko,

I think maybe the problem is that an 8 digit sequence number is not large enough for the number of records you're processing. Try using an 8-byte PD seqnum (15 digits) instead of an 8-byte ZD seqnum (8 digits) and see if that works:

Code:

  SORT FIELDS=COPY
  OUTREC IFTHEN=(WHEN=INIT,
      OVERLAY=(69:SEQNUM,8,PD)),
       IFTHEN=(WHEN=(1,1,CH,NE,C'1'),
      OVERLAY=(77:SEQNUM,8,PD,
               69:69,8,PD,SUB,77,8,PD,TO=PD,LENGTH=8)),
       IFTHEN=(WHEN=NONE,
      OVERLAY=(69:SEQNUM,8,PD))
  OUTFIL FNAMES=OUT01,OUTREC=(1,68),
     INCLUDE=(69,8,PD,LE,500000)
  OUTFIL FNAMES=OUT02,OUTREC=(1,68),
     INCLUDE=(69,8,PD,GE,500001,AND,69,8,PD,LE,1000000)
  OUTFIL FNAMES=OUT03,OUTREC=(1,68),
     INCLUDE=(69,8,PD,GE,1000001,AND,69,8,PD,LE,1500000)
   OUTFIL FNAMES=OUT04,OUTREC=(1,68),
     INCLUDE=(69,8,PD,GE,1500001,AND,69,8,PD,LE,2000000)
   OUTFIL FNAMES=OUT05,OUTREC=(1,68),
     INCLUDE=(69,8,PD,GE,2000001,AND,69,8,PD,LE,2500000)
   OUTFIL FNAMES=OUT06,OUTREC=(1,68),
     INCLUDE=(69,8,PD,GE,2500001,AND,69,8,PD,LE,3000000)

_________________
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
shuko
Beginner


Joined: 08 Nov 2005
Posts: 73
Topics: 20

PostPosted: Sun Oct 28, 2007 6:51 am    Post subject: Reply with quote

Thanks a million Frank. Your are really a genius. This change worked.

shuko
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


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

PostPosted: Sun Oct 28, 2007 10:17 am    Post subject: Reply with quote

Good. I guess with input files getting bigger these days, it would be a good idea to start using SEQNUM,8,PD for examples on this board instead of SEQNUM,8,ZD. ZD is convenient for testing because it's readable, but PD can handle bigger values in the same number of bytes. Of course, it's easy enough to display PD in readable format in another step for testing.
_________________
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
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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