<HTML><HEAD><TITLE>DOWNLOAD and BY.EXP Question</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Try without the WHEN in the Download phrase</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial>SELECT SA.2005 BY.EXP SA.AWARD WHEN SA.AWARD EQ "ABC"</FONT></DIV>
<DIV><FONT face=Arial>DOWNLOAD SA.2005 @ID SA.AWARD SA.AMOUNT BY.EXP SA.AWARD</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>This worked for me.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Chad</FONT></DIV>
<DIV><BR><BR>>>> msteyn@niagara.edu 11/4/2005 1:23 PM >>><BR></DIV>
<DIV style="COLOR: #000000"><!-- Converted from text/rtf format --><BR>
<P><FONT face=Arial size=2>I am having difficulty using the BY.EXP / WHEN syntax with DOWNLOAD.</FONT> </P>
<P><FONT face=Arial size=2>I am trying to develop a file of specific "ABC" Awards from our SA.2005 file.</FONT> </P>
<P><FONT face=Arial size=2>My paragraph statements look like this:</FONT> </P>
<P><FONT face=Arial size=2>SELECT SA.2005 BY.EXP SA.AWARD WHEN SA.AWARD EQ "ABC"</FONT> <BR><FONT face=Arial size=2>DOWNLOAD SA.2005 @ID SA.AWARD SA.AMOUNT BY.EXP SA.AWARD WHEN SA.AWARD EQ "ABC" etc</FONT> </P>
<P><FONT face=Arial size=2>The results are:</FONT> </P>
<P><FONT face=Arial size=2>0111111,"",""</FONT> <BR><FONT face=Arial size=2>0222222,"",""</FONT> </P>
<P><FONT face=Arial size=2>My @ID field is getting output, but not so the SA.AWARD or the SA.AMOUNT.</FONT> </P>
<P><FONT face=Arial size=2>If I take out the BY.EXP and the WHEN in the DOWNLOAD phrase, I DO get the Award and the Amount data, but only for the 'first' Award, which is not necessarily "ABC", of course.)</FONT></P>
<P><FONT face=Arial size=2>e.g.</FONT> <BR><FONT face=Arial size=2>0111111,"DEF",1000.00</FONT> <BR><FONT face=Arial size=2>0222222."ABC","250.00"</FONT> </P>
<P><FONT face=Arial size=2>Can anyone see where my error lies ?</FONT> </P>
<P><FONT face=Arial size=2>Thank you,</FONT> </P><BR>
<P><FONT face=Arial size=2>Maggie Steyn</FONT> <BR><FONT face=Arial size=2>Application Analyst</FONT> <BR><FONT face=Arial size=2>Information Technology Department</FONT> <BR><FONT face=Arial size=2>Niagara University</FONT> <BR><FONT face=Arial size=2>msteyn@niagara.edu</FONT> <BR><FONT face=Arial size=2>Phone: (716) 286-8651</FONT> <BR><FONT face=Arial size=2>Fax: (716) 286-8045 </FONT></P>
<P><FONT face=Arial size=2></FONT> </P></DIV></BODY></HTML>