If you are certain that the two entries that you want to save are the first two entries in the file, then find out what IEN (record) numbers they are. Then, rather then initializing i by: set i=$order(^PS(55,0)) instead, set i=last IEN+1
I.e. if the records you want to save are IEN=1 and IEN=2, then just set i=3 to begin with. Kevin On 6/23/06, Matthew King <[EMAIL PROTECTED]> wrote: > See Below: > > > > > > > > Start > > > merge ^TMP("MATTHEWKING","^PS(55")=^PS(55) > > > new i > > > set i=$order(^PS(55,0)) > > > if +i>0 for do quit:(+i'>0) //if i>2, then no effect on my first > > > two entries? > > > . kill ^PS(55,i) > > > . set i=$order(^PS(55,i)) > > > > > > > Kevin Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Hardhats-members mailing list Hardhats-members@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hardhats-members