David, 

You may want to use a scripting language, such as VBScript to parse out
the information.  You can read in the file line by line and parse each
line as you are reading it using string functions (left, right, mid).
Hope that helps

-Shane

Shane Jordan
Systems Analyst II
Fairmont General Hospital
Phone: 304-368-4572
Fax: 304-367-7176
Email: [EMAIL PROTECTED]
 
"It's not broken, it does exactly what the code told it to do"

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David McAllister
Sent: Wednesday, June 27, 2007 10:43 AM
To: Meditech-l List
Subject: [MEDITECH-L] Sort of kind of off topic - parsing extremely
longlines

I am working with a .sdf file whose lines are each 22,686 characters
(bytes) long.  I need to parse out about 150 individual pieces of data
from each line but I am having trouble finding ANY program that can read
a line that long.  Ultimately I plan to script the extracted data into
meditech using BWS.  But first I have to parse these 100 mile long lines
of data.

Does anyone have experience parsing info out of a line this long?  If
so, how??!!   When I import a line into excel, it puts the whole 23K
line into cell A1, which of course does me no good.

Any ideas...?

TIA.

David McAllister, MT(ASCP)
Systems Analyst/Programmer
Jeff Anderson Reg. Med. Ctr.
Meridian, Mississippi
Office: 601-553-6027 (M-F 0500-1330 central)
Email: [EMAIL PROTECTED]


***********************************************************
The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this
email by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution or any action taken
or omitted to  be taken in reliance on it, is prohibited and may be
unlawful. If you believe that you have received this email in error,
please contact the sender.
************************************************************

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

To check the status of the meditech-l, visit MTUsers.NET

For help, email [EMAIL PROTECTED]

Please visit and add information to the MTUsers WikiPedia at
MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit 
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

To check the status of the meditech-l, visit MTUsers.NET

For help, email [EMAIL PROTECTED]

Please visit and add information to the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l_mtusers.com

Reply via email to