Don't forget that the second set has the benefit of the first set leaving some of the data in virtual memory, hence the second set would have been longer.
my 1 cent How about this on your similar UD system. Correct typing implied. OPEN MASTER ELSE STOP SELECT MASTER START=SYS9 10 READNEXT ID ELSE GOTO 15 GOTO 10 15 END=SYS9 PRINT END-START ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 17, 2004 2:25 PM Subject: Re: [U2] [UV] WHILE READNEXT id DO > If you are running on any system it will cost you. The only question is, > do you mind paying the price? Little things do add up. > If you are on UniData run this. Plug in your own huge file. > OPEN 'MASTER' TO MASTER ELSE STOP > SELECT MASTER > START.CPU = SYSTEM(9) > LOOP > READNEXT ID ELSE EXIT > REPEAT > END.CPU = SYSTEM(9) > CRT END.CPU-START.CPU > SELECT MASTER > START.CPU = SYSTEM(9) > LOOP > WHILE 1 DO > READNEXT ID ELSE EXIT > REPEAT > END.CPU = SYSTEM(9) > CRT END.CPU-START.CPU > > I get > 290 > 320 > > > Bruce M Neylon > Health Care Management Group > > > > > > Dave S <[EMAIL PROTECTED]> > Sent by: [EMAIL PROTECTED] > 06/17/2004 01:09 PM > Please respond to u2-users > > > To: [EMAIL PROTECTED] > cc: > Subject: Re: [U2] [UV] WHILE READNEXT id DO > > If you are running on some old school system, it may cost you. > > But don't these programs on Unidata all get compiled into C ? > > [EMAIL PROTECTED] wrote: > Why use the WHILE 1 DO? Why not > LOOP > READNEXT ID ELSE EXIT > REPEAT > Doesn't the WHILE 1 DO cost? not that it would cost much. :-) > > Bruce M Neylon > Health Care Management Group > > > > > > Dave S > Sent by: [EMAIL PROTECTED] > 06/17/2004 09:56 AM > Please respond to u2-users > > > To: [EMAIL PROTECTED] > cc: > Subject: Re: [U2] [UV] WHILE READNEXT id DO > > I like to use : > > LOOP WHILE 1 DO > READNEXT ID ELSE EXIT > REPEAT > ------- > u2-users mailing list > [EMAIL PROTECTED] > To unsubscribe please visit http://listserver.u2ug.org/ > > > --------------------------------- > Do you Yahoo!? > New and Improved Yahoo! Mail - Send 10MB messages! > ------- > u2-users mailing list > [EMAIL PROTECTED] > To unsubscribe please visit http://listserver.u2ug.org/ > ------- > u2-users mailing list > [EMAIL PROTECTED] > To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [EMAIL PROTECTED] To unsubscribe please visit http://listserver.u2ug.org/
