× 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.


  • Subject: cpytoxxx commands and comma delimited files
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Wed, 12 Apr 2000 13:51:36 -0700

I think this has probably been covered here recently, but a quick search of
the archives didn't turn up what I was looking for.  I'm trying to copy a
data base file to a comma delimited ascii text file

I was fooling with cpytoimpf and getting the traditional garbage character
result.  I looked in the CL manual and a few other places and decided to try
a two pronged approach.
  
First a cpytoimpf to a data base file with a single field long enough to
accomodate the fields and the necessary delimiters.  (I ran out of fingers
pretty quickly.)  Then a cpytostmf from the flat file to my ifs text file
using the translation features.  

It worked fine except for one little detail.  The copy to the flat file
resulted in a left justified numeric field which of course carried over to
the ifs text file.  (The numeric field in the test file was signed.)

Is this just the way it works, or is there something I can do that doesn't
involve actual programming?  The left justified numeric field in the comma
delimited flat file is not enclosed in quotes, just has trailing blanks.  I
have other file transfer options, so this isn't a matter of life and death.

Thanks in advance.
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.