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 

sort performance for space

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


Joined: 23 Jan 2007
Posts: 84
Topics: 14

PostPosted: Mon Jan 14, 2008 3:08 am    Post subject: sort performance for space Reply with quote

My sortcard looks like this,
Code:

  JOINKEYS FILES=F1,FIELDS=(15,25,A,50,2,A,65,8,A,83,4,A)             
  JOINKEYS FILES=F2,FIELDS=(15,25,A,50,2,A,65,8,A,83,4,A)
  REFORMAT FIELDS=(F1:1,860,F2:1,860),FILL=X'FF'                 
  JOIN UNPAIRED                                                 
  SORT FIELDS=(15,25,CH,A,50,2,CH,A,65,8,CH,A,83,4,CH,A)
  OUTFIL FILES=01,INCLUDE=(861,1,BI,EQ,X'FF'),OUTREC=(1,860)     
  OUTFIL FILES=02,INCLUDE=(1,1,BI,EQ,X'FF'),OUTREC=(861,860)     
  OUTFIL FILES=03,INCLUDE=(1,1,BI,NE,X'FF',AND,861,1,CH,NE,X'FF'),
                            OUTREC=(1,24,....)


My file lengths are 860 bytes each... Do I need to add sort work files? My input may have upto 100,000 records. Will a Cobol program be a better option?
Also, if I include a IFTHEN clause in my outrecs, then what?
________
Restless Leg Syndrome Advice


Last edited by blitz2 on Thu Mar 10, 2011 5:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
krisprems
Beginner


Joined: 13 Dec 2006
Posts: 101
Topics: 4
Location: india

PostPosted: Wed Jan 16, 2008 1:21 am    Post subject: Reply with quote

blitz2,
Quote:

My file lengths are 860 bytes each... Do I need to add sort work files? My input may have upto 100,000 records. Will a Cobol program be a better option?

Are you facing any space issues? If so then have the work datasets allocated.

Quote:

Also, if I include a IFTHEN clause in my outrecs, then what?

What are you trying to do here...? The question is not clear!!
_________________
cHEERs
krisprems
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