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: 7935
Location: Bellevue, IA

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: 2025
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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