<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006>John,</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=835292919-17052006>My
world is Hp-Ux and before that MPE-ix, but I think the advice would still
apply.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=835292919-17052006>The
ideal way to do something like this is to write to and INDEXED SUBFILE, which
has the index in the order that you require.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=835292919-17052006>That
way the records are "inserted" (written) in the order of the index. A quiz
report can then just read the resulting subfile without having to do the sort at
all. Yes, the process that creates the subfile is slow, but the report is
very fast and the overall load on the system is less.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006>Failing that, if you don't have indexed subfiles
available I would seriously consider putting another file definition into the
dictionary.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=835292919-17052006>Other
than that, a system sort utility would be a good idea.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=835292919-17052006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=835292919-17052006>
<P><FONT size=2>Guy L. Werry<BR>Senior Systems Analyst<BR>Hudson Bay Mining
& Smelting Co., Limited. </FONT></P></SPAN></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
powerh-l-bounces+guy.werry=hbms.ca@lists.sowder.com
[mailto:powerh-l-bounces+guy.werry=hbms.ca@lists.sowder.com]<B>On Behalf Of
</B>John Stires<BR><B>Sent:</B> Wednesday, May 17, 2006 2:01 PM<BR><B>To:</B>
powerh-l@lists.sowder.com<BR><B>Subject:</B> Distributing the load across
SORTWORK files<BR><BR></FONT></DIV>
<DIV>We are doing a very large sort in quiz. It consistently runs for a
time and then dies. We have 10 SORTWORK files defined,
but only one seems to be used. It grows to several million blocks
before the process dies. The others are virtually untouched.</DIV>
<DIV> </DIV>
<DIV>We are running OpenVMS V6.2 with PowerHouse version 7.10E6.</DIV>
<DIV> </DIV>
<DIV>Does anyone have a suggestion on how to distribute the sort load across
multiple SORTWORK files.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks in advance for any help any of you can offer on this.</DIV>
<DIV> </DIV>
<DIV>John Stires</DIV></BLOCKQUOTE></BODY></HTML>