Do you have SYSTEM(11) like we do in UniData? It may do something else entirely or be slightly different.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of George Gallen Sent: Tuesday, October 19, 2010 1:41 PM To: U2 Users List Subject: [U2] How many will be selected? UV here I open a file, then use SELECT filevarible then proceed to do a LOOP/READNEXT/REPEAT to scan through the file. OPEN "","SOMEFILE" TO F.TEST ELSE STOP SELECT F.TEST LOOP READNEXT ID ELSE EXIT REPEAT Is there any way to know how many records WILL BE processed in that loop before scanning? @selected doesn't work, it only returns the number of items in the last group that was read I tried using SELECT filevariable TO list.variable .... but you can't do a DCOUNT on that variable you can only READNEXT FROM list.variable Aside from EXECUTE "SELECT filename" RTNLIST in place of the SELECT filevariable so that @selected would return with the actual number selected (which does do what I want) Any other methods? George Gallen Senior Programmer/Analyst Accounting/Data Division, EDI Administrator [email protected] ph:856.848.9005 Ext 220 The Wyanoke Group http://www.wyanokegroup.com _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users <html> <body> ________________________________ Dave Davis Team Lead, R&D P: 614-875-4910 x108 F: 614-875-4088 E: [email protected] [http://www.harriscomputer.com/images/signatures/HarrisSchools.gif] [http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif] 6110 Enterprise Parkway Grove City, OH 43123 www.harris-schoolsolutions.com This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message. </body> </html> _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
