<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:View>Normal</w:View>
  <w:Zoom>0</w:Zoom>
  <w:PunctuationKerning/>
  <w:ValidateAgainstSchemas/>
  <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
  <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
  <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
   <w:DontGrowAutofit/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:LatentStyles DefLockedState="false" LatentStyleCount="156">
 </w:LatentStyles>
</xml><![endif]--><style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:536871559 0 0 0 415 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 10]>
<style>
 /* Style Definitions */
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
</style>
<![endif]-->

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Hi All: <br></span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><br></span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;&nbsp;
My idea is the reverse of the technique where you remove the optional<br>
&nbsp;&nbsp; from the get of the secondary to display only those primary
records which have a <br>
&nbsp;&nbsp; corresponding secondary file. A failed get on a non optional
secondary raises<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><span style="">&nbsp;</span><span style="">&nbsp;</span><span style="">&nbsp;</span>an error condition.<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p>&nbsp;</o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><span style="">&nbsp;&nbsp; </span>An error in the FIND sequence goes back to
the next primary record if there is one<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><span style="">&nbsp; </span><span style="">&nbsp;</span>otherwise back to the action field.<br>
<br>
From:- http://public.dhe.ibm.com/software/data/cognos/documentation<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/docs/en/powerhouse/8.4g/QD.pdf<br>
<br>
&nbsp;&nbsp; "Error Handling in the FIND Procedure<br>
&nbsp;&nbsp; If an error occurs during the execution of this procedure, <br>
&nbsp;&nbsp; QUICK backs up to the last GET verb for the PRIMARY file. <br>
&nbsp;&nbsp; If no such verb exists, QUICK prompts the screen user in the
Action field,<br>
&nbsp;&nbsp; without displaying any retrieved data."</span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><br>
</span></p><p class="MsoNormal">&nbsp;&nbsp;&nbsp; For example:-<br><span style="font-size: 10pt; font-family: Verdana;"></span></p><p class="MsoNormal"><br><span style="font-size: 10pt; font-family: Verdana;">
</span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">&nbsp;&nbsp;&nbsp;&nbsp; file &nbsp;apmisumi<br>
&nbsp;&nbsp;&nbsp;&nbsp; select&nbsp; if source-code = "632654450"
and gm-part &lt;&gt; " &nbsp; &nbsp;12844161" &amp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;and (flag-905="P" or flag-905="C") <br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file&nbsp; apmisumi secondary alias bad_part <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;access via </span><span style="font-size: 10pt; font-family: Arial;">APMISUMI-KEY &amp;</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;using
doc-char +"632654450" + " &nbsp; &nbsp;12844161" </span><span style="font-size: 10pt; font-family: Verdana;"><br>
&nbsp;<br>
&nbsp;<br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Procedure Find</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Begin</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Get apmisumi</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Get&nbsp; bad_part optional</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If
NOT NEWRECORD of bad_part</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;then
error " "</span><span style="font-size: 10pt; font-family: Verdana;"><br>
</span><span style="font-size: 10pt; font-family: Arial;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
End</span><span style="font-size: 10pt; font-family: Verdana;"><br>
&nbsp;<o:p></o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;"><o:p>&nbsp;</o:p></span></p>

<p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Jay tried
it and got it working. Good work, Jay!</span></p><p class="MsoNormal"><br><span style="font-size: 10pt; font-family: Verdana;"></span></p><p class="MsoNormal"><span style="font-size: 10pt; font-family: Verdana;">Regards, <br></span></p>Peter<br><font size="1" color="Gray" face="Arial"><br>
</font>                                               <br /><hr />Don't miss a beat <a href='http://go.microsoft.com/?linkid=9712961' target='_new'>Get Messenger on your phone</a></body>
</html>