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



The HEX code 0D is a carriage return and 0A is a line feed. I don't really
use the CPYTOSTMF command very often, I usually just write the file directly
to the IFS.

Is the company you are sending this to use Windows to parse it? Maybe you
just need to send the file with a line feed at the end, 0A.

Just a thought.

--
James R. Perkins


On Fri, Apr 24, 2009 at 15:29, John Allen <jallen@xxxxxxxxxxx> wrote:

I am using CPYTOSTMF to copy a file to the IFS
When I look in the file using WRKLNK there are no blank
records
When I open the file using Note Pad on the PC it has a blank
record at the end of the file.

I thought this might be a Note Pad issue, sent the file to
be processed (to a 3rd party company)
They rejected the file because it has a blank record at the
end

I asked if they could just ignore it or delete it
Nope their software cannot process blank records, I have to
fix my file.

Here is what the end of the file looks like with WRKLNK
5501750007109397588696XXXXXXNE 7,730.34 01

5501750007109392541782XXXXXXN 24,796.35 01
5501750007109391907528XXXXXXANY 2,042.31 01
5501750007109392824989XXXXXXNE 10,353.27 01

5501750007109396666959XXXXXXNICA 6,555.63 01

************End of Data********************


Using WRKLNK Display Hex I do see a 0D0A at the end of each
record.
I do not have a 0D0A in my from file on the CPYTOSTMF
So CPYTOSTMF must add it, Would the 0D0A on the last record
cause the blank line on PC applications?
Is there a way to remove it only from the last record

Of course I get this problem 6:30PM the night before I fly
out to Common

John



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.