blitz2 Beginner
Joined: 23 Jan 2007 Posts: 84 Topics: 14
|
Posted: Mon Jan 14, 2008 3:08 am Post subject: sort performance for space |
|
|
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 |
|