Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP'ed file from UNIX to Mainframe environment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: FTP'ed file from UNIX to Mainframe environment
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

Site Director


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

PostPosted: Sat Nov 06, 2010 10:06 pm    Post subject:
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    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sat Nov 06, 2010 10:52 pm    Post subject:
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

Senior Member


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

PostPosted: Mon Nov 08, 2010 1:23 am    Post subject: Reply to: FTP'ed file from UNIX to Mainframe environment
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us