View previous topic :: View next topic
|
Author |
Message |
naveenbv80
New User
Joined: 28 Jul 2007 Posts: 2 Location: denver
|
|
|
|
We had received the file from customer. The file sent through FTP from UNIX to Mainframe environment. There's still an issue with the record length when the files get FTP'ed to the mainframe. We currently have to allocate the files in MVS with a record length of 1001 to allow for the end-of-record linefeed character. My customer is checking to see if there's some option we can set on the FTP so we can keep it at 1000. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
My customer is checking to see if there's some option we can set on the FTP so we can keep it at 1000. |
Why not use the 1001 if it works. . . |
|
Back to top |
|
|
naveenbv80
New User
Joined: 28 Jul 2007 Posts: 2 Location: denver
|
|
|
|
Eventhough if we send 1000 bytes, there is one extra byte adding automatically(end of record line feed character). We are getting the file from UNIX side. Our programs (Mainframe cobol) are getting the input from UNIX (Record length should be 1000 bytes but now we are getting 1001). Are there any options that we can handle in UNIX FTP server?. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What are the FTP options being used? Normally, an FTP transfer of a text file from Unix to MVS removes the line feed as part of storing the data in the MVS file structure. Hence, your FTP is not being performed as a normal FTP -- so we need to see how the FTP is being done. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
FTP supports the quote command, in which you can pass information to the mainframe, something like this:
Code: |
quote site lrecl=1000 blocksize=15000 recfm=fb
|
Though, I am not sure if it is truncated or wrapped. |
|
Back to top |
|
|
|