<div dir="ltr">Yup,  <div><br></div><div>I forgot to add -RW in there to set @PW. I also changed it to more along the lines of Scott's example. That way the records are organized by index.<div><br></div><div>Now it looks like.</div><div><br></div><div><div>pop_schþ If: 'pop_sch</div><div>       Then:</div><div>430  -------   -   -   -   -   -   -   -   -   -   -   -   -   -</div><div>       þ If:</div><div>       Then: declare txpid(8,.0); txpid=""</div><div>431  -------   -   -   -   -   -   -   -   -   -   -   -   -   -</div></div></div><div dir="ltr"><div><div><div>       þ If:</div><div>       Then: lookup sched=(inf_file) k=(qb) i=G -nx</div></div></div></div><div dir="ltr"><div><div><div>432  -------   -   -   -   -   -   -   -   -   -   -   -   -   -</div><div>       þ If: not sched</div><div>       Then: system "rclerk lz_ss_infcon -S1 -d -XIE"; return</div></div><div><div>       þ If:</div><div>       Then: txpid=sched(104)</div><div>434  -------   -   -   -   -   -   -   -   -   -   -   -   -</div></div></div></div><div dir="ltr"><div><div><div>       þ If:</div><div>       Then: close sched</div></div></div></div><div dir="ltr"><div><div><div>435  -------   -   -   -   -   -   -   -   -   -   -   -   -</div><div>       þ If:</div><div>       Then: cm="rclerk lz_ss_infcon -S1 -d -XIT -RW"<txpid</div></div><div><div>436  -------   -   -   -   -   -   -   -   -   -   -   -   -   -</div></div></div></div><div dir="ltr"><div><div><div>       þ If:</div><div>       Then: system cm</div></div></div></div><div dir="ltr"><div><div><div>437  -------   -   -   -   -   -   -   -   -   -   -   -   -   -</div><div>       þ If:</div><div>       Then: return</div></div><div><br></div><div>I got rid of the display</div><div><br></div><div></div></div></div><div dir="ltr"><div><div><div>@menu  þ If:</div><div>       Then:</div><div>104  -------   -   -   -   -   -</div></div></div></div><div dir="ltr"><div><div><div>       þ If: zz eq "X"</div><div>       Then: exit</div></div></div></div><div dir="ltr"><div><div><div>105  -------   -   -   -   -   -</div></div></div></div><div dir="ltr"><div><div><div>       þ If: @pw ne ""</div><div>       Then: PUSHKEY (@PW)</div></div></div></div><div dir="ltr"><div><div><div>106  -------   -   -   -   -   -</div></div></div></div><div dir="ltr"><div><div><div>       þ If: @pw ne ""</div><div>       Then: zz="X"</div></div><div><div>       þ If:</div><div>       Then: end</div></div><div><br></div><div>Thanks a bunch!</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jul 16, 2016 at 11:15 AM Kenneth Brody <<a href="mailto:kenbrody@spamcop.net" target="_blank">kenbrody@spamcop.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 7/15/2016 5:11 PM, Jason Garner wrote:<br>
> Thanks Ken,<br>
><br>
> I am almost there I start with<br>
><br>
> pop_schþ If: 'pop_sch<br>
>        Then:<br>
[...]<br>
>        Then: recno=sched(@rn)<br>
[...]<br>
>        Then: close sched<br>
[...]<br>
>        Then: cm="rclerk lz_ss_infcon -S1 -d -XE"<recno<br>
[...]<br>
>        Then: system cm<br>
[...]<br>
><br>
><br>
> Then upon entering the destination processing table<br>
><br>
> @menu  þ If:<br>
>        Then:<br>
> 104  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<br>
>        þ If: @PW ne ""<br>
>        Then: lookup - r=@PW<br>
> 105  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<br>
>        þ If:<br>
>        Then: display<br>
> 106  -------   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -<br>
>        þ If:<br>
>        Then: end<br>
><br>
> What I get is the IUA menu, but behind it is the screen I want. So I am<br>
> thinking my rclerk command isnt quite right still or no?<br>
[...]<br>
<br>
How do you think "@PW" is being set in the "destination" processing table?<br>
<br>
Also, the "display" is unnecessary.  If @PW is set, and the lookup succeeds,<br>
you're taken directly to that record, which will be displayed on the screen.<br>
  And, if @PW isn't set, or the lookup fails, you'll be at the *clerk menu,<br>
with a blank record shown under it.<br>
<br>
--<br>
Kenneth Brody<br>
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Jason Garner<br></div><div style="font-size:12.8000001907349px">Systems Administrator<br>1801 Oberlin Rd, Suite 204</div><div style="font-size:12.8000001907349px">Middletown, PA 17057<br><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice"><span title="Call with Google Voice">Work   <a href="tel:717-985-1122" value="+17179851122" style="color:rgb(17,85,204)" target="_blank">717-985-1122</a></span></span></span></span></span> x 1139</div><div style="font-size:12.8000001907349px">Mobile 717-645-3521</div><div style="font-size:12.8000001907349px"><a href="mailto:jason.garner@evalsvs.com" target="_blank">jason.garner@evalsvs.com</a></div></div></div>