Sponsored Content
Top Forums Shell Programming and Scripting How to convert Text data to xls? Post 302912310 by srkmish on Thursday 7th of August 2014 08:50:40 AM
Old 08-07-2014
Quote:
Originally Posted by ernie
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:
Code:
BATCHID STARTDATE FINDATE 
----------- -------------------------- --------------------------
2000001 2014-08-06-02.37.35.786000 - 
2000002 2014-08-06-02.37.07.833000 - 
2000003 2014-08-06-02.37.02.705000 - 
2000004 2014-08-06-02.36.53.644000 -

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.
 

10 More Discussions You Might Find Interesting

1. Programming

trying to convert binary data to text using C++

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)
Discussion started by: geet
2 Replies

2. Shell Programming and Scripting

Convert a csv file to an xls format

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)
Discussion started by: Pablo_beezo
11 Replies

3. Shell Programming and Scripting

Shell convert xls to csv

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)
Discussion started by: Gracjan
4 Replies

4. Shell Programming and Scripting

how to convert .xls to .csv

Hi, I have problem..How to convert .xls file to .csv.. Plz help me for this problem.. (1 Reply)
Discussion started by: varma457
1 Replies

5. UNIX and Linux Applications

Tool for Convert XLS into CSV in UNIX

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)
Discussion started by: luke_devon
6 Replies

6. Shell Programming and Scripting

How to convert a xls file to csv?

Hi, My requirement is to convert the xls to csv file with utf-8 conversion. Is there any way please suggest me. Thanks, Raja (4 Replies)
Discussion started by: cnraja
4 Replies

7. Shell Programming and Scripting

How to convert Excel Files to Xls?

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)
Discussion started by: kalidoss
5 Replies

8. Shell Programming and Scripting

Converting text files to xls through awk script for specific data format

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)
Discussion started by: Amit1
6 Replies

9. Shell Programming and Scripting

Perl script to convert xlsx to xls file

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)
Discussion started by: kshitij
3 Replies

10. UNIX for Beginners Questions & Answers

Convert Excel File (xls) to tab delimited text file on AIX

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
sview(1)							  SLURM Commands							  sview(1)

NAME
sview - graphical user interface to view and modify SLURM state. SYNOPSIS
sview DESCRIPTION
sview can be used to view SLURM configuration, job, step, node and partitions state information. Authorized users can also modify select information. The primary display modes are Jobs and Partitions, each with a selection tab. There is also an optional map of the nodes on the left side of the window which will show the nodes associated with each job or partition. Left-click on the tab of the display you would like to see. Right-click on the tab in order to control which fields will be displayed. Within the display window, left-click on the header to control the sort order of entries (e.g. increasing or decreasing) in the display. You can also left-click and drag the headers to move them right or left in the display. If a JobID has an arrow next to it, click on that arrow to display or hide information about that job's steps. Right-click on a line of the display to get more information about the record. There is an Admin Mode option which permits the user root to modify many of the fields displayed, such as node state or job time limit. In the mode, a SLURM Reconfigure Action is also available. It is recommended that Admin Mode be used only while modifications are actively being made. Disable Admin Mode immediately after the changes to avoid possibly making unintended changes. NOTES
The sview command can only be build if gtk+-2.0 is installed. Systems lacking these libraries will have SLURM installed without the sview command. At least some gtk themes are unable to display large numbers of lines (jobs, nodes, etc). The information is still in gtk's internal data structures, but not visible by scrolling down the window. COPYING
Copyright (C) 2006-2007 The Regents of the University of California. Copyright (C) 2008-2011 Lawrence Livermore National Security. Pro- duced at Lawrence Livermore National Laboratory (cf, DISCLAIMER). CODE-OCEC-09-009. All rights reserved. This file is part of SLURM, a resource management program. For details, see <http://www.schedmd.com/slurmdocs/>. SLURM is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. SLURM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. SEE ALSO
sinfo(1), squeue(1), scontrol(1), slurm.conf(5), sched_setaffinity (2), numa (3) February 2011 SLURM 2.3 sview(1)
All times are GMT -4. The time now is 06:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy