Greetings, There isn't a "total records in the file" property since the DataStation accesses a line at a time till it sees the end, it does not "read the file as a whole then "grab records" one at a time. You could do: Do Mycount=d.record d.next_ Loop until d.eof At the beginning of the script.
A how many left would be mycount-d.record Regards, Thjom Thom C. Blackwell Product Manager Boston Software Systems (866) 653-5105 ex 807 www.bossoft.com LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately, then delete this message and empty from your trash. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chen, Scott C Sent: Friday, August 03, 2007 1:23 PM To: [email protected] Subject: RE: [Talk] How to Grab DataStation Record Count That worked for current record, but how about getting the Total Record Count in the DataStation? I want to show how many records have been processed and how many are left to process. Thanks. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Thom C. Blackwell Sent: Friday, August 03, 2007 10:13 AM To: [email protected] Subject: RE: [Talk] How to Grab DataStation Record Count Greetings, D.Record will give you want you're looking for. Regards, Thom Thom C. Blackwell Product Manager Boston Software Systems (866) 653-5105 ex 807 www.bossoft.com LEGAL NOTICE Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately, then delete this message and empty from your trash. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chen, Scott C Sent: Friday, August 03, 2007 1:09 PM To: Boston WorkStation Group (E-mail) Subject: [Talk] How to Grab DataStation Record Count Hi, I want to be able to grab the current record i'm processing and the total record count in the datastation. I tried the following D.LastRecord, but it gave me a -1. Don't think it is correct. Scott Chen Spec-Database Development Providence Health & Services (503) 215-4441 DISCLAIMER: This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message. DISCLAIMER: This message is intended for the sole use of the addressee, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the addressee you are hereby notified that you may not use, copy, disclose, or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete this message.
