![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
CSV files are a hassle. Those darn double quotes are always screwing things up. It is much easier to work with tab delimited data. I usually just suck the record into Excel and then save is as tab delimited text. Unfortunately these files are huge, so I can't do that. Does anyone have a routine for parsing the data into something useable that they are willing to share? Thanks in advance, Jeff |
#3
| |||
| |||
|
|
how about taking them into access 1st, then chop them up Rich Jeffrey Kaufman wrote: CSV files are a hassle. Those darn double quotes are always screwing things up. It is much easier to work with tab delimited data. I usually just suck the record into Excel and then save is as tab delimited text. Unfortunately these files are huge, so I can't do that. Does anyone have a routine for parsing the data into something useable that they are willing to share? Thanks in advance, Jeff |
#4
| |||
| |||
|
|
The customer has given me almost 900 megs of data all in CSV. The data is sitting in a directory in a Linux box in Phoenix. I don't have a lot of options for manipulating the data. I have to deal with it as it is. "Richard Wilson" <rwilson (AT) lakeside-systems (DOT) com> wrote in message news BwZg.32750$rg1.861 (AT) dukeread01 (DOT) ..how about taking them into access 1st, then chop them up Rich Jeffrey Kaufman wrote: CSV files are a hassle. Those darn double quotes are always screwing things up. It is much easier to work with tab delimited data. I usually just suck the record into Excel and then save is as tab delimited text. Unfortunately these files are huge, so I can't do that. Does anyone have a routine for parsing the data into something useable that they are willing to share? Thanks in advance, Jeff |
#5
| |||
| |||
|
|
CSV files are a hassle. Those darn double quotes are always screwing things up. It is much easier to work with tab delimited data. I usually just suck the record into Excel and then save is as tab delimited text. Unfortunately these files are huge, so I can't do that. Does anyone have a routine for parsing the data into something useable that they are willing to share? Thanks in advance, Jeff |
#6
| |||
| |||
|
|
Does anyone have a routine for parsing the data into something useable that they are willing to share? |
#7
| |||
| |||
|
|
I dont know how much data access can handle if 900mb doesnt max out access you can import csv and turn right around and export tab Jeffrey Kaufman wrote: The customer has given me almost 900 megs of data all in CSV. The data is sitting in a directory in a Linux box in Phoenix. I don't have a lot of options for manipulating the data. I have to deal with it as it is. "Richard Wilson" <rwilson (AT) lakeside-systems (DOT) com> wrote in message news BwZg.32750$rg1.861 (AT) dukeread01 (DOT) ..how about taking them into access 1st, then chop them up Rich Jeffrey Kaufman wrote: CSV files are a hassle. Those darn double quotes are always screwing things up. It is much easier to work with tab delimited data. I usually just suck the record into Excel and then save is as tab delimited text. Unfortunately these files are huge, so I can't do that. Does anyone have a routine for parsing the data into something useable that they are willing to share? Thanks in advance, Jeff |
#8
| |||
| |||
|
|
The customer has given me almost 900 megs of data all in CSV. The data is sitting in a directory in a Linux box in Phoenix. I don't have a lot of options for manipulating the data. I have to deal with it as it is. |
#9
| |||
| |||
|
|
Hi Jeffry, The customer has given me almost 900 megs of data all in CSV. The data is sitting in a directory in a Linux box in Phoenix. I don't have a lot of options for manipulating the data. I have to deal with it as it is. 1. Install OpenQM on the box in Phoenix 2. Create a VOC "F" entry pointing to the directory containing the CSV's. 3. Write a quickie BASIC program to read the CSV's, create a recipient QM file and save the items. 4. T-DUMP/T-LOAD the files or do an ACCOUNT-SAVE/ACCOUNT-RESTORE Look at the CSVDQ(), DPARSECSV(), MATREADCSV and READCSV functions and statements to sort out #2 above. All character based, simple so easy via ssh and sftp ... and PICK-like to boot. <g If the CSV's have header rows you could even get fancy and have your BASIC program build dictionary items from these ... Hope this helps, -Tom |
#10
| |||
| |||
|
|
Jeffrey Kaufman wrote: Does anyone have a routine for parsing the data into something useable that they are willing to share? How about this: 001 subroutine csv.parser(string0,rec) 002 * 11-20-00 asb 003 * parse comma separated value record watching out for quotes ("") 004 * attribute delimited rec is returned 005 006 string = string0 007 rec = "" 008 an = 1 009 loop 010 if string[1,1] ne '"' then 011 result = field(string,",",1) 012 string = string[col2()+1,999999] 013 end else 014 pos = index(string,'",',1) 015 if pos eq 0 then pos = len(string) 016 result = string[1,pos] 017 string = string[pos+2,999999] 018 convert '"' to '' in result 019 end 020 rec<an> = trim(result) 021 until string eq "" do 022 an +=1 023 repeat 024 025 return /Scott Ballinger Pareto Corporation Edmonds WA USA 206 713 6006 |
![]() |
| Thread Tools | |
| Display Modes | |
| |