• Subject: Re: File transfere with FTP to a PC -Reply
  • From: "Rich Brearley" <BrearlRI@xxxxxxxx>
  • Date: Mon, 24 Nov 1997 13:44:42 -0500

Carl, 

Your suggestion worked good.  What I did was put a carriage return in position 
81 of the file that I was downloading.  This forced the file to 80 characters 
long and thus accomplished what I was after.  I actually defined it in the 
physical file with the default value of X'0D' for a 1 one byte field in 
position 81.  Then I created a logical file without that field to use in my 
program.  

I think that I could have got away with out the logical file, but I'm not sure. 
 I do know that this worked.

Thanks again for your help.
Rich

>>> Carl Galgano <cgalgano@ediconsulting.com> 11/21/97 04:07pm >>>
Rich:
This issue was discussed pretty extensivly on the list about a month ago.
I believe the consensous solution was to place a character in the last
position of the file on the 400 so the file would always be the same
length.  I know that is more of a work around and not much of a solution.
I suggest you put some sort of hex code in the last positon that has a
corresponding ASCII character.  Remember FTP will do EBCIDIC to ASCII
conversion.
Hope this helps.  If this was not the best way to do it I'm sure you will
hear about it here.
Regards,
Carl

At 02:03 PM 11/21/97 -0500, you wrote:
>I'm trying to transfer a fixed length file to a PC.  When I get this file
to the PC using FTP it is no longer fixed length.... Example 80 characters.
 The carriage return is place after the last character of the record.
>
>Is there a way to get the file down to a PC with a fixed length of 80?
>
>Thanks in an advance for your assistance.
>
>Rich
>-------------------------------------------------
>Rich Brearley
>Programmer/Analyst
>Durham County Hospital Corp
>Phone: (919)470-4171
>Fax     : (919)470-7396
>+---
>| 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
>+---
>
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
+---
umidr

+---
| 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
+---


This thread ...


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

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