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

Data was truncated while FTP'ing?


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Siriporn P.

New User


Joined: 16 Jan 2006
Posts: 9

PostPosted: Tue Jun 06, 2006 1:42 pm
Reply with quote

Hi,

I found out why data was being truncated and the reason was because my file is a very big line with data. Is there an option in FTP where I can specify that I want data to be cut every 200 bytes and write lots of lines instead of only one?

FYI. I was uploading using FTP script, not using option 6 as it was very slow since the host i connected to is very far away (Houston) while i am here in Bangkok.

Thanks,
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Jun 06, 2006 7:34 pm
Reply with quote

No, not that I've seen documented.

I see that you have two options here:

1. Re-format the data to your required specifications on the server before invoking the FTP process to the mainframe.

2. FTP the data to a dataset allocated as RECFM=FB LRECL=200 in binary (image) mode. The ASCII data should wrap into the 200-byte records. Then, you'll need to write a program to un-wrap the records as required and translate them from ASCII back into EBCDIC.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top