× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I was able to find out that SEQUEL can create customized PC formats.
For those who have SEQUEL, just type WRKPCFMT on a command line and hit
enter.  Press F6.  I created the following format and named it *TABNQ :

========================================================
Text  Tab Delimited with no Quotes

Delimiter      x'09'     
String start   *NONE     
String end     *NONE     
Record end     x'0D0A'   
Heading record *NONE     
Numeric edit   *NUMBER      
========================================================

Works great...

Hector Sanchez
Driscoll Children's Hospital



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Wednesday, November 09, 2005 3:29 PM
To: Midrange Systems Technical Discussion
Subject: Re: Removing quotes from tab delimited file


> I am creating a tab delimited file from our iSeries using Sequel.
This
> file is imported by another application.  When Sequel creates the
file,
> a date field is surrounded by quotes ie "11/01/2005".  Does anyone
know
> of a way to remove the quotes from the file.  It wont import into my
> application.

If you want to remove all quotes from the data (no matter where they are

in the file) you can run the following QShell command:

      tr -d '\177' < /path/to/input.csv > /path/to/output.csv

The TR utility will delete any character with octal EBCDIC value 177 
(which is hex x'7F', and is the quote character.)

If you have QShell installed, you can run this from a CL program with:

      STRQSH CMD(tr -d ''\177'' < /path/to/input.csv +
                                > /path/to/output.csv

Otherwise... you could write a program that does it.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.