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
 

 

Question on using WS_FTP to transfer files to mainframe

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

New User


Joined: 08 Mar 2014
Posts: 26
Location: USA

PostPosted: Mon Mar 10, 2014 6:51 pm    Post subject: Question on using WS_FTP to transfer files to mainframe
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: 26
Location: USA

PostPosted: Mon Mar 10, 2014 7:29 pm    Post subject:
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

Site Director


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

PostPosted: Mon Mar 10, 2014 7:30 pm    Post subject:
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: 26
Location: USA

PostPosted: Mon Mar 10, 2014 7:37 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Mon Mar 10, 2014 7:38 pm    Post subject:
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: 26
Location: USA

PostPosted: Mon Mar 10, 2014 7:40 pm    Post subject:
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: 1238
Location: Richfield, MN, USA

PostPosted: Mon Mar 10, 2014 11:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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