× 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: Re: *BLANKS = spaces?
  • From: Sean Porterfield <sporter@xxxxxxxxxxxx>
  • Date: Tue, 19 Sep 2000 14:59:39 -0400
  • Organization: Best Distributing Co.

FTP does not have an option for DOS random.  That's only Client Access
transfer.  Plus, the adding CRLF makes it not automated (I already
looked at that possibility.)

Your other option is interesting and I may try it sometime out of
curiousity (adding a second field loaded with CRLF).

Wayne Achenbaum wrote:

>
>
>      ----- Original Message -----
>      From: tomh@simas.com
>      To: RPG400-L@midrange.com
>      Sent: Tuesday, September 19, 2000 9:06 AM
>      Subject: Re: *BLANKS = spaces?
>       Tom, I'm assuming when you do your transfer you are
>      selecting file type of ascii text. The AS/400 will truncate
>      all hex '40' at the end of the record and put a carriage
>      return line feed in for you. I have done this many times. I
>      believe if you select Dos random as your to file all will be
>      cool, but you must explicitly put your own carriage return
>      line feed in. In your example your file would need 2 fields.
>      The first is the data field described as 801 bytes alpha,
>      the second is a 2 byte alpha field perhaps called CRLF for
>      carriage return line feed. you should populate it with the
>      hex values '0D' and '25'. To do this you can move left the
>      '0D' to CRLF and move the '25' to CRLF. When you do the
>      tranfer the translation table will interpet the field CRLF
>      to be an ascii carriage return line feed. This is one way to
>      solve your problem. Good Luck, Wayne
>      Can you put a non-blank character in position 801?  That's
>      what I had to do some years ago when using PC Support for
>      file transfers.
>
>
>
>
>      If I MOVE *BLANKS to a field, is that the sames as *ALL ' '
>      or having
>      spaces?  I've noticed that the AS/400 generally doesn't seem
>      to
>      distinguish between a blank and a space in most instances.
>
>      This goes back to my 801 character field - when I FTP it to
>      a PC, the
>      record is only as long as the real data and does not include
>      the
>      trailing blanks.  I need the PC file to also be 801
>      characters.
>
>      I tried sending the database file first, then converted to a
>      PC Document
>      and transferred it.  Same result both times.  This may have
>      just gone
>      off topic for this list...
>
>      Thanks!
>
>
>

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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-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.