IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP'ed file from UNIX to Mainframe environment


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naveenbv80

New User


Joined: 28 Jul 2007
Posts: 2
Location: denver

PostPosted: Sat Nov 06, 2010 9:51 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Nov 06, 2010 10:06 pm
Reply with quote

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. . . icon_confused.gif
Back to top
View user's profile Send private message
naveenbv80

New User


Joined: 28 Jul 2007
Posts: 2
Location: denver

PostPosted: Sat Nov 06, 2010 10:14 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Sat Nov 06, 2010 10:52 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Nov 08, 2010 1:23 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
Search our Forums:

Back to Top