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
 
Error - FTPing file - File transfer failed

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ranjanp

New User


Joined: 02 May 2006
Posts: 25

PostPosted: Wed Nov 07, 2007 9:26 pm    Post subject: Error - FTPing file - File transfer failed
Reply with quote

I am trying to FTP a file to the Mainframe. I am getting the following error..

EZA1490I Error writing to data set
EZA2537E File transfer failed. File contains records that are longer than the LRECL of the new file

Please help.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Nov 07, 2007 9:48 pm    Post subject: Reply to: Error - FTPing file
Reply with quote

The error seems to be extremely self-explanatory. Is there a discrepancy between the record lengths of the file versus the dataset?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Nov 07, 2007 9:50 pm    Post subject:
Reply with quote

If the target file is not predefined on the host in my experience FTP defaults to 80 character records.
Back to top
View user's profile Send private message
ranjanp

New User


Joined: 02 May 2006
Posts: 25

PostPosted: Wed Nov 07, 2007 9:50 pm    Post subject: Reply to: Error - FTPing file
Reply with quote

I am not coding any LRECL parameter for the dataset to be created. How can I know what will be the LRECL of a dataset from the file I need to FTP.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Nov 07, 2007 9:55 pm    Post subject: Reply to: Error - FTPing file
Reply with quote

I would specify that the target dataset be RECFM=VB LRECL=32760, and then let the file content determine the actual length of each record. At the very least, I usually specify an LRECL that's a bit longer than any possible record in the file.
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: Wed Nov 07, 2007 10:00 pm    Post subject:
Reply with quote

Hello,

FWIW, the pre-allocated mainframe file may have a longer lrecl than the data to be uploaded. You don't have to have an exact byte count. Saves a bunch of time when the data records to be uploaded are a few thousand bytes icon_smile.gif
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed Nov 07, 2007 10:40 pm    Post subject: Reply to: Error - FTPing file - File transfer failed
Reply with quote

Craq Giegerich wrote:
If the target file is not predefined on the host in my experience FTP defaults to 80 character records.


I'm not sure there's a specific default value. I belive that it's controlled by TCP/IP configuration settings in the FTP.DATA dataset.

ranjanp wrote:
I am not coding any LRECL parameter for the dataset to be created. How can I know what will be the LRECL of a dataset from the file I need to FTP.


If the data is coded in ASCII, count the number of characters between the record delimiters (CR/LF). That will tell you how many bytes you'll need to properly contain each record.
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: Wed Nov 07, 2007 11:41 pm    Post subject:
Reply with quote

Hello,

To repeat,
Quote:
FWIW, the pre-allocated mainframe file may have a longer lrecl than the data to be uploaded. You don't have to have an exact byte count. Saves a bunch of time when the data records to be uploaded are a few thousand bytes
You don't have to provide an exact count/lrecl - just make sure the mainframe allocation lrecl is long enough to handle the longest data line to be uploaded.
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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 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 FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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