<div>   So I have to use &#39;rn&#39; as the variable and it will work?</div>
<div>   Basically same thing I&#39;m doing I just have to replace my &#39;ce&#39; variable with &#39;rn&#39;?<br><br></div>
<div class="gmail_quote">On Fri, Feb 3, 2012 at 9:27 AM, Richard Kreiss <span dir="ltr">&lt;<a href="mailto:rkreiss@verizon.net">rkreiss@verizon.net</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Top post from phone:<br><br>To get the new record number after the lookup free add rn=new(@rn). This will be the new record number.<br>
<br>Be careful about record numbers as Filepro will add new records to deleted records. So it is possible that a new record may be added which has a lower record number the the highest available record number in the file.<br>
<br>Richard<br>Sent from my iPhone<br>
<div>
<div></div>
<div class="h5"><br>On Feb 3, 2012, at 9:06 AM, &quot;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&quot; &lt;<a href="mailto:scooter6@gmail.com">scooter6@gmail.com</a>&gt; wrote:<br><br>&gt; I have a process that is adding a record to a file and I need to capture<br>
&gt; the record number that is being added<br>&gt; i.e.<br>&gt;<br>&gt; If = 6 gt @td<br>&gt; Then = lookup new = file   r=free   -e<br>&gt;<br>&gt; Then = ce(10,*)=new(@rn)<br>&gt;<br>&gt;<br>&gt; I need &#39;ce&#39; equal to the record number that is getting added to &#39;file&#39; so I<br>
&gt; can do another free lookup that needs<br>&gt; the newly created record number in &#39;file&#39;<br>&gt;<br>&gt; Is this possible?<br>&gt; I have tried setting ce after I do a &#39;write&#39; new but that didn&#39;t work either<br>
&gt;<br>&gt; Anyone?<br>&gt;<br>&gt; Scott<br>&gt; PDM<br></div></div>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: <a href="http://mailman.celestial.com/pipermail/filepro-list/attachments/20120203/2a5a65de/attachment.html" target="_blank">http://mailman.celestial.com/pipermail/filepro-list/attachments/20120203/2a5a65de/attachment.html</a><br>
&gt; _______________________________________________<br>&gt; Filepro-list mailing list<br>&gt; <a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>&gt; Subscribe/Unsubscribe/Subscription Changes<br>
&gt; <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br></blockquote></div><br>