Richard:
If you use FTP to transfer the data then the trailing blanks should be
truncated.  There was a thread not to long ago that was the opposite of
your problem.  The question went something like how do I always get all
records in a file to have a fixed length in FTP.  The answer was to include
a character at the end of the record.

Also, you can also do this by using the CPYTOPCD command.  There is a
parameter for *TEXT/*NOTEXT.  I don't remember which makes the PC file have
variable length records, but a quick test should verify the correct parm.
The CPYTOPCD command will take the source PF member and create a PC
document in a shared folder.  Then use the shared folder support in CA to
get the document to the PC.

HTH.
Carl

At 10:02 AM 12/12/97 -0500, you wrote:
>Seasons greetings!!!
>
>I was wondering if someone could help me with a minor problem.
>
>We're doing a lot of cgi programming for web pages using rpg.  We store
>the html in source file members on the as400.
>
>Typically, our html developers design the pages on PCs, and I transfer
>them to the 400 via client access.  The problem is that, sometimes, I
>need to do the reverse - download the files to a pc, so that the web
>developers can make changes.
>
>The problem lies in the fixed record length nature of source files.  All
>the records have padded spaces at the end, making it more difficult to
>edit using pc based editors.   It's not a big deal, just an annoyance.
>
>My question is this, does anyone have a decent way of downloading fixed
>length records, but only transfering the non-blank portions of the
>records, I assume by somehow appending a carriage return to the end of
>each record?
>
>Thanks in advance,
>
>rick
>+---
>| This is the Midrange System Mailing List!
>| To submit a new message, send your mail to "MIDRANGE-L@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
>+---
>umidr
>
Carl J. Galgano
http://cgalgano.home.mindspring.com
mailto:cgalgano@ediconsulting.com
EDI Consulting Services, Inc.   
540 Powder Springs Street
Suite C19
Marietta, GA 30064
770-422-2995
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to "MIDRANGE-L@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 ...

Replies:

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

This mailing list archive is Copyright 1997-2022 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.