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



Hi Kara -

I am trying to copy a physical file to a stream file that will be
imported into another system.  This other system cannot accept carriage
returns or line feeds so I have created a physical file with one field
that is defined as 80 characters long.  The data is formatted so that it
is written out to this file as one long string with a '~' separating
each segment.  The problem is that when the last record is written out,
it does not fill the entire 80 characters of the field.  I can not have
anything after the last '~' - no carriage return, no line feed, no eof
terminator, and not even blanks.  Does anyone have a suggestion?

One brute force solution is to make the field one character, so every character would be a separate record in the file.


If you made it a variable length field with a minimum length of 1 and some reasonable maximum length, that would be better *IF* it would be copied to the stream file correctly.

--
Ken
http://www.ke9nr.net/
Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind.



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.