Re: [U2] Simple Export to Excel

2009-07-08 Thread Symeon Breen
Subject: Re: [U2] Simple Export to Excel The csv 'standard' for fields containing a quote is double quote So for the data Col1 = col1data Col2 = col 2 is here !, and it is good Col3 = end You have a csv of col1,col 2 is here !, and it is good,end Does the ! in front of the comma in Col2 make

Re: [U2] Simple Export to Excel

2009-07-07 Thread Symeon Breen
-users-boun...@listserver.u2ug.org] On Behalf Of charles_shaf...@ntn-bower.com Sent: 06 July 2009 16:21 To: U2 Users List Subject: Re: [U2] Simple Export to Excel Excel has the nasty habit of doing things to the data. For example, leading zeros are removed from numeric data. This is a bad thing

Re: [U2] Simple Export to Excel

2009-07-07 Thread Charles_Shaffer
The csv 'standard' for fields containing a quote is double quote So for the data Col1 = col1data Col2 = col 2 is here !, and it is good Col3 = end You have a csv of col1,col 2 is here !, and it is good,end Does the ! in front of the comma in Col2 make it escape the comma. In other

Re: [U2] Simple Export to Excel

2009-07-07 Thread Colin Alfke
There is a standard RFC4180 with iana. The standard is to have any commas enclosed within the double quotes. Only the Double quotes are escaped with double quotes. hth Colin Alfke Calgary, Canada From: Charles_Shaffer The csv 'standard' for fields containing a quote is double

Re: [U2] Simple Export to Excel

2009-07-07 Thread Charles_Shaffer
There is a standard RFC4180 with iana. The standard is to have any commas enclosed within the double quotes. Only the Double quotes are escaped with double quotes. Got it. Thanks everyone. I didn't know that. I still think I'll stick with tab delimiters though. Charles Shaffer Senior

Re: [U2] Simple Export to Excel

2009-07-07 Thread Steve Romanow
charles_shaf...@ntn-bower.com wrote: Got it. Thanks everyone. I didn't know that. I still think I'll stick with tab delimiters though. lol, standards are made to be broken :) ___ U2-Users mailing list U2-Users@listserver.u2ug.org

Re: [U2] Simple Export to Excel

2009-07-07 Thread Charles_Shaffer
Got it. Thanks everyone. I didn't know that. I still think I'll stick with tab delimiters though. lol, standards are made to be broken :) We used to joke about the RS-232 'standard.' It was such a great standard because there were so many different ways to implement it. Charles

Re: [U2] Simple Export to Excel

2009-07-07 Thread Henry Unger
-Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of charles_shaf...@ntn-bower.com Sent: Tuesday, July 07, 2009 1:51 PM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Got it. Thanks everyone. I didn't know that. I

Re: [U2] Simple Export to Excel

2009-07-06 Thread Charles_Shaffer
Instead of Tab-delimited, look at CSV format. It supports embedded single- and double-quotes. And CSV imports into Excel. Embedded double quotes are two consecutive chars: Tab delimit4ed fiels work the same as comma delimited files as far as how they handle quotes. And Excel will import

Re: [U2] Simple Export to Excel

2009-07-06 Thread Kevin King
I second what Charles is saying. When moving data into Excel, tab-sep format is a lot cleaner because you don't have to care whether a field has an embedded comma, squote, or dquote. -K ___ U2-Users mailing list U2-Users@listserver.u2ug.org

Re: [U2] Simple Export to Excel

2009-07-06 Thread Israel, John R.
Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King Sent: Monday, July 06, 2009 9:58 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel

Re: [U2] Simple Export to Excel

2009-07-06 Thread George Gallen
06, 2009 10:15 AM To: 'U2 Users List' Subject: Re: [U2] Simple Export to Excel I agree completely. However, Excel has the nasty habit of doing things to the data. For example, leading zeros are removed from numeric data. This is a bad thing if you have valid data like 123, 0123 00123

Re: [U2] Simple Export to Excel

2009-07-06 Thread Israel, John R.
St. Dayton, OH 45342 937-866-0711 x44380 -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen Sent: Monday, July 06, 2009 10:35 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel I like

Re: [U2] Simple Export to Excel

2009-07-06 Thread Charles_Shaffer
Excel has the nasty habit of doing things to the data. For example, leading zeros are removed from numeric data. This is a bad thing if you have valid data like 123, 0123 00123. Excel will make then all 123. I agree. You can quote text values, but this is problematic if the data itself

Re: [U2] Simple Export to Excel

2009-07-06 Thread Kevin King
The problem with Excel stripping leading zeroes and converting stuff to dates can be completely mitigated if you download and open the sheet manually. If you open the sheet automatically, Excel does its magic. However, if you open a .txt file with tabs (or even commas for that matter) you can

Re: [U2] Simple Export to Excel

2009-07-06 Thread Larry Hiscock
King Sent: Monday, July 06, 2009 8:34 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel The problem with Excel stripping leading zeroes and converting stuff to dates can be completely mitigated if you download and open the sheet manually. If you open the sheet automatically, Excel does

Re: [U2] Simple Export to Excel

2009-07-06 Thread Kevin King
On Mon, Jul 6, 2009 at 9:59 AM, Larry Hiscock lar...@wcs-corp.com wrote: Or, you can create your export in the Office XML format, and tell excel explicitly what to do with each column of data. Absolutely. But what a time-consuming chore that can be... :-) -K

Re: [U2] Simple Export to Excel

2009-07-06 Thread Ross Morrissey
ad (actually endorsement from happy user) Which is why Tony G's NebulaXlite exists. /ad On Mon, Jul 6, 2009 at 9:54 AM, Kevin King precisonl...@gmail.com wrote: On Mon, Jul 6, 2009 at 9:59 AM, Larry Hiscock lar...@wcs-corp.com wrote: Or, you can create your export in the Office XML format,

Re: [U2] Simple Export to Excel

2009-07-06 Thread Tony G
The solutions provided here should help: nospamNebula-RnD.com/blog/tech/2009/07/excel-csv1.html From: John Israel ...Excel has the nasty habit of doing things to the data. For example, leading zeros are removed from numeric data. This is a bad thing if you have valid data like 123,

Re: [U2] Simple Export to Excel

2009-07-06 Thread Brutzman, Bill
I have a little ODBC project that I just started. Getting the IBM-U2 ODBC Driver to work with Excel was almost painless. --Bill ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users

Re: [U2] Simple Export to Excel

2009-07-06 Thread Don Verhagen
: Monday, July 06, 2009 12:55 PM To: U2 Users List Subject: Re: [U2] Simple Export to Excel On Mon, Jul 6, 2009 at 9:59 AM, Larry Hiscock lar...@wcs-corp.com wrote: Or, you can create your export in the Office XML format, and tell excel explicitly what to do with each column of data

Re: [U2] Simple Export to Excel

2009-06-23 Thread Ross Ferris
@listserver.u2ug.org Subject: Re: [U2] Simple Export to Excel As Robert describes, double quotes are used in freeware I've published called ExcelExport, which exports full workbooks and individual worksheets to CSV. You can get the software from our freeware page and see the TXT Readme for details

[U2] Simple Export to Excel

2009-06-22 Thread Israel, John R.
We have lots of programs that export our data from UniData to tab-delimited text files. Some of these are opened by Excel (which has its faults), some are imported into other databases. These files will be 1) E-mailed as attachments or written to specific location on the network. If I know

Re: [U2] Simple Export to Excel

2009-06-22 Thread Edward Brown
To: 'U2 Users List' Subject: [U2] Simple Export to Excel We have lots of programs that export our data from UniData to tab-delimited text files. Some of these are opened by Excel (which has its faults), some are imported into other databases. These files will be 1) E-mailed as attachments or written

Re: [U2] Simple Export to Excel

2009-06-22 Thread Israel, John R.
Sent: Monday, June 22, 2009 9:58 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Yes, if you quote-delimit all your fields then it's possible to pass @VMs as line feeds, and it will do what you want. Ed -Original Message- From: u2-users-boun...@listserver.u2ug.org

Re: [U2] Simple Export to Excel

2009-06-22 Thread Edward Brown
List' Subject: Re: [U2] Simple Export to Excel Cool. Here is the next wrinkle. What if my UniData data has (or may have) quotes in it? Am I out of luck or is there some alternate way to get the same result? Is there something like in other languages that you could convert double quotes

Re: [U2] Simple Export to Excel

2009-06-22 Thread Israel, John R.
: [U2] Simple Export to Excel Dunno, how about converting double quotes in the data to single quotes? Or stripping them out entirely? Ed -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Israel, John R. Sent: 22 June

Re: [U2] Simple Export to Excel

2009-06-22 Thread Edward Brown
...@listserver.u2ug.org] On Behalf Of Israel, John R. Sent: 22 June 2009 15:30 To: 'U2 Users List' Subject: Re: [U2] Simple Export to Excel That would not work. We use double and single quotes in descriptions for describing lengths. For example, we might sell something whose dimensions are: 2x3x10' Even so

Re: [U2] Simple Export to Excel

2009-06-22 Thread Jeff Schasny
: Monday, June 22, 2009 10:25 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Dunno, how about converting double quotes in the data to single quotes? Or stripping them out entirely? Ed -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun

Re: [U2] Simple Export to Excel

2009-06-22 Thread George Gallen
...@listserver.u2ug.org [mailto:u2-users- boun...@listserver.u2ug.org] On Behalf Of Jeff Schasny Sent: Monday, June 22, 2009 11:05 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Make your data into an HTML table. Israel, John R. wrote: That would not work. We use double and single quotes

Re: [U2] Simple Export to Excel

2009-06-22 Thread Bobby Worley
...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Israel, John R. Sent: 22 June 2009 15:30 To: 'U2 Users List' Subject: Re: [U2] Simple Export to Excel That would not work. We use double and single quotes in descriptions for describing lengths. For example, we might sell

Re: [U2] Simple Export to Excel

2009-06-22 Thread Steve Romanow
- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users- boun...@listserver.u2ug.org] On Behalf Of Jeff Schasny Sent: Monday, June 22, 2009 11:05 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Make your data into an HTML table. Israel, John R. wrote: That would not work

Re: [U2] Simple Export to Excel

2009-06-22 Thread Jeff Butera
quote who='Steve Romanow' date='Monday 22 June 2009' I am using pyExcelerator to make native xls files on aix. I think this package is depracated and has been replaced by xlrd and xlwt. My use is not mature at all, but I envision a hook in Output.Redirect that will allow direct to xls

Re: [U2] Simple Export to Excel

2009-06-22 Thread Steve Romanow
Do you have yours tied into SB+ at all? That is the holy grail. Jeff Butera wrote: quote who='Steve Romanow' date='Monday 22 June 2009' I am using pyExcelerator to make native xls files on aix. I think this package is depracated and has been replaced by xlrd and xlwt. My use is not

Re: [U2] Simple Export to Excel

2009-06-22 Thread Israel, John R.
Corporation 721 Richard St. Dayton, OH 45342 937-866-0711 x44380 -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bobby Worley Sent: Monday, June 22, 2009 10:44 AM To: 'U2 Users List' Subject: Re: [U2] Simple Export

Re: [U2] Simple Export to Excel

2009-06-22 Thread Robert Porter
-boun...@listserver.u2ug.org] On Behalf Of Edward Brown Sent: Monday, June 22, 2009 10:25 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Dunno, how about converting double quotes in the data to single quotes? Or stripping them out entirely? Ed -Original Message- From: u2

Re: [U2] Simple Export to Excel

2009-06-22 Thread Steve Romanow
...@listserver.u2ug.org] On Behalf Of Bobby Worley Sent: Monday, June 22, 2009 10:44 AM To: 'U2 Users List' Subject: Re: [U2] Simple Export to Excel Instead of Tab-delimited, look at CSV format. It supports embedded single- and double-quotes. And CSV imports into Excel. Embedded double quotes are two

Re: [U2] Simple Export to Excel

2009-06-22 Thread Jeff Butera
quote who='Steve Romanow' date='Monday 22 June 2009' Do you have yours tied into SB+ at all? That is the holy grail. No. -- Jeff Butera, Ph.D. Administrative Systems Hampshire College jbut...@hampshire.edu 413-559-5556 Dad, you're talking in grown-up and need to stop.

Re: [U2] Simple Export to Excel

2009-06-22 Thread Israel, John R.
: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Steve Romanow Sent: Monday, June 22, 2009 11:45 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel John, Somehting I do for some extracts is replace with IN and ' with FT in description

Re: [U2] Simple Export to Excel

2009-06-22 Thread Colin Alfke
Steve; SB+ downloads quite nicely to Excel. Query reports handle it natively (even to 12 different graph types). Plus there is the TU.TO.EXCEL routine you can look at if you want more explicit control. Primarily, it dumps it to a local file, opens it with Excel and runs macros on it. Hth Colin

Re: [U2] Simple Export to Excel

2009-06-22 Thread Steve Romanow
It requires sbclient and windows. I use neither. ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users

Re: [U2] Simple Export to Excel

2009-06-22 Thread Ross Morrissey
-boun...@listserver.u2ug.org] On Behalf Of Edward Brown Sent: Monday, June 22, 2009 10:25 AM To: U2 Users List Subject: Re: [U2] Simple Export to Excel Dunno, how about converting double quotes in the data to single quotes? Or stripping them out entirely? Ed -Original Message

Re: [U2] Simple Export to Excel [AD]

2009-06-22 Thread Tony G
Please also consider NebulaXLite to create nicely formatted spreadsheets for Excel, OpenOffice, and Google Docs. When you deliver CSV in response to a request for Excel, it's like introducing someone to their new business software that looks like DOS. It just makes the business software seem

Re: [U2] Simple Export to Excel

2009-06-22 Thread Colin Alfke
Wasn't your question about tying it into SB+? If you exclude the SBClient portion of SB+ then how is it different from anything else? Whether you use something like NebulaXLite to generate the document at the Basic level or something server side like perl or python there shouldn't be anything

Re: [U2] Simple Export to Excel

2009-06-22 Thread Steve Romanow
Colin, I would like to to tie in to SB+ (as in an option available in OUTPUT.REDIRECT). I think OUTPUT.REDIRECT is a prelude specific routine, I may be wrong. Where I make the distinction is I do not want to involve any DDE or COM to the client, I would just liek the xls dropped to a dir

Re: [U2] Simple Export to Excel

2009-06-22 Thread Tony G
As Robert describes, double quotes are used in freeware I've published called ExcelExport, which exports full workbooks and individual worksheets to CSV. You can get the software from our freeware page and see the TXT Readme for details. no.spam.pleaseNebula-rnd.com/freeware/ Rather than making