Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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: 2086
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us