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

Question on using WS_FTP to transfer files to mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jay Villaverde

New User


Joined: 08 Mar 2014
Posts: 27
Location: USA

PostPosted: Mon Mar 10, 2014 6:51 pm
Reply with quote

Good day,

I've been using Ipswitch WS_FTP to transfer files to the mainframe with success but it seems that if my file has a carriage return of some sort I only get the first record of the file.

For example, I can see a period at the end of the file I'm currently working with so I'm assuming that's some sort of carriage return or line feed indicator?

I use the FTP Commands of WS_FTP to designate my RECFM= and LRECL=, so is there some other command I can use to make it transfer all the rows and not just the first one?

Thank you
Jay
Back to top
View user's profile Send private message
Jay Villaverde

New User


Joined: 08 Mar 2014
Posts: 27
Location: USA

PostPosted: Mon Mar 10, 2014 7:29 pm
Reply with quote

Wanted to add that if I transfer the file to the mainframe via PC3270 it creates more rows than just the first one. Reason I wanted to use WS_FTP is because this particular file is quite large for PC3270 so FTP would be more efficient and quicker.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Mar 10, 2014 7:30 pm
Reply with quote

Hello and welcome to the forum,

How is the file created on the remote?

Look at the "period" in hex to see what character it really is. Could be a period or something else.

Often files are created with embedded control characters and these may or may not cause problems.
Back to top
View user's profile Send private message
Jay Villaverde

New User


Joined: 08 Mar 2014
Posts: 27
Location: USA

PostPosted: Mon Mar 10, 2014 7:37 pm
Reply with quote

Thanks for the welcome and quick response.

I'm creating the file on the remote side as a fixed length text file if that's what you're asking.

As for the period, it's shown in hex as:

2
5
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon Mar 10, 2014 7:38 pm
Reply with quote

What is the hex value of the "carriage return"? Are you sure it is end-of-line and not end-of-file?
Back to top
View user's profile Send private message
Jay Villaverde

New User


Joined: 08 Mar 2014
Posts: 27
Location: USA

PostPosted: Mon Mar 10, 2014 7:40 pm
Reply with quote

Should be end-of-line as when I use PC3270 for the transfer all rows have the hex of:

2
5

So I wouldn't think that would be end-of-file.

Thanks
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Mon Mar 10, 2014 11:57 pm
Reply with quote

X'25' is LF (line feed?) according to my old "Yellow Booklet". It shows up as a space in Reflection.
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 Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top