It appears that your script creates a text file with a single space as the field separator.
Yeah it has db2 installed and it creates a single space as field separator.
---------- Post updated at 07:50 AM ---------- Previous update was at 07:49 AM ----------
Quote:
Originally Posted by Perderabo
I do this all the time. I cut this data from your post:
and created a file in notepad called data.txt. Then I used this procedure:
open excel 2007
click data on the ribbon
click from text-- browse to data.txt and open it.
Pick "delimited" click next
unckeck "tab" and check "space" then click next
click "finish"
accept "=$A$1" default and click ok -- data will populate the spreadsheet
Hi, thanks for the explanation. However i dont want to import text into excel as it an additional manual task. I want to create an excel file directly somehow using any function that DB2 uses.
@Rudic : I dont have Colsep in db2. What else can i use here.
i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter.
i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions.
the kind of values i get are
-1.265369923E+038
and like
... (2 Replies)
Hi,
I have a file coming in xxx.txt(csv format) i do some work on it and i need to send out as a .xls format. Is there any way there is some code i can use in my script to convert this?
I'm struggling on this.
Thanks (11 Replies)
Hi does anybody know how to convert xls to csv undex linux.
I need only data (that is log from test, dont need any macro and so on) from xls.
Any idea how to do that? Perl? shell? Could you give me any example?
Thanks in advance for answer.
Gracjan (4 Replies)
Hi
I wanted to convert some XLS files into CSV format in my UNIX box. Unix box is handling very important data which are related to data warehouse.It is fully optimized by installing minimum packages since server need more resources to handle reports generating.
Just for convert XLS files... (6 Replies)
Hi All,
I have created a BI Publisher report in Oracle apps R12.
It has generated the output with *.EXCEL file extension. I have a shell script to mail this output. in my shell script I have copied this file and saved as *.xls file.
But the R12 generated *.EXCEL file is not a real excel... (5 Replies)
Dear Friends,
I am in urgent need for awk/sed/sh script for converting a specific data format (.txt) to .xls.
The input is as follows:
>gi|1234|ref|
Query = 1 - 65, Target = 1677 - 1733
Score = 8.38, E = 0.6529, P = 0.0001513, GC = 46
fd sdfsdfsdfsdf
fsdfdsfdfdfdfdfdf... (6 Replies)
Hi
I am trying one perl script to convert xlsx to xls file but could not able to get all the rows and columns in the xls file . This scriptFILE is basically to convert XLSX to CSV .. I am tweaking the script to convert XLSX to XLS file also
#######################FILE... (3 Replies)
Hi
i have a problem in my job
i try to convert an excel file (xls extention) to text file (tab delimited), but no result with this comand
cat xxx.xls > xxx.txt
Do you have eny idea?
PS: sorry for my english
Thanks!! (4 Replies)
Discussion started by: frisso
4 Replies
LEARN ABOUT DEBIAN
jodreports
JODREPORTS(1) General Commands Manual JODREPORTS(1)NAME
jodreports - use libjodreports-java directly from the command line to merge OpenDocument text with data
SYNOPSIS
jodreports <template-document> <data-file> <output-document>
DESCRIPTION
jodreports is a java program that merge OpenDocument text with data by using libjodreports-java. The command line tool is especially useful
to test templates while you are adding instructions to them. You use a .properties or .xml file to contain the <data-file> to be merged
into the template. The <template-document> needs to be an existing OpenDocument text with simple fields. A field that will be replaced with
the value of a variable passed can be specified using the standard FreeMarker expression notation by typing the variable name into the doc-
ument as follows
Hi ${name}!
here name will be replaced with the value passed in at runtime.
However, mixing processing instructions and normal text into the document may become confusing and clutter the layout. So JOOReports pro-
vides an alternative way of inserting fields. You can insert a visual field in OpenOffice.org Writer from the menu Insert / Fields /
Other... (or just press Ctrl+F2), then click on the Functions tab and select Input field. Change the field Reference to JOOScript and in
the following field Content enter the variable name (e.g. "$name"). This field will typically be displayed by Writer as a grayed rectangle
with the variable name, while moving the mouse over it will reveal the field reference.
This is a nice way of keeping processing instructions separate from the document layout and is thus the recommended approach. Whatever you
specify as the field Reference will be treated as a FreeMarker ${...} expression, so it could also be something more complex than a simple
variable name.
To insert more advanced instructions, e.g. for conditionally displaying a portion of text, or repeating a table row for each item in a col-
lection, you can use FreeMarker directives.
A simple directive is assign. You can use it to define a new variable, for example
[#assign totalPrice = unitPrice * quantity]
Note that we always use the alternative (square bracket) syntax for FreeMarker directives.
While it may be possible to insert this directive directly as text into the template, this does not always work (for reasons we'll see
below) and as mentioned mixing instructions into the document is a practice we want to avoid anyway. For this reason, JOOReports lets you
insert FreeMarker directives as scripts. You can insert a script in Writer from the menu Insert / Script..., then change the Script type to
JOOScript and insert any FreeMarker directives in the script Text box. A script will be displayed by Writer as a small green rectangle, and
you can double click on it to open it and modify it.
So you directive will be executed at the point where the script has been inserted. This is ok for something like assign but as we'll see
will not work for something like list.
Alternatively, you can insert a FreeMarker directive in OpenOffice.org Writer from the menu Insert / Fields / Other... (or just press
Ctrl+F2), then click on the Functions tab and select Input field. Change the field Reference to JOOScript and in the following field Con-
tent enter the directive (e.g. "[#assign title='Mr.']"). Sample Open Document Template
Again this provides a nice way to insert processing instructions and keept them separate from the document layout.
The <output-document> is also an OpenDocument text and will be created as the result of the merge.
JOOReports uses FreeMarker as its template engine.
FILES
/usr/share/java/jodreports.jar
AUTHOR
jodreports was written by Mirko Nasato <mirko@artofsolving.com> and Terry Liang <terry@polonious.com.au>.
jodreports was packaged for the Debian project by Sascha Girrulat <sascha@girrulat.de>.
This manual page was written by Sascha Girrulat <sascha@girrulat.de>, for the Debian project (and may be used by others). Most of the used
information are reused from http://jodreports.sourceforge.net.
User Manuals January 30, 2011 JODREPORTS(1)