- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file getting truncated
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 10:09 PM
07-11-2007 10:09 PM
file getting truncated
I am trying to FTP a file from unix to mainframe. but the length of the line is getting trucated while FTPing.
Here is the piece of code that i used for FTP
user $FTPUSER $FTPPWD
prompt
asc
site LRECL=${LineLength} RECFM=VB CYL PRI=100 SEC=100 BLK=0
put ${SRCFILE} \'${SRCFILE}\'
dis
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 10:34 PM
07-11-2007 10:34 PM
Re: file getting truncated
Two possibilities spring to mind.
1) Timeout for inactivity on the receiving server. That may need to be adjusted.
2) filesystem on the receiving server limits maximum file size.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 10:55 PM
07-11-2007 10:55 PM
Re: file getting truncated
Do you mean that each record at the mainframe is truncated? If so, then the SITE command will have to be fixed. HP-UX (and Unix in general) have no real concept of a line length -- only the applications define a line (ie, cat, vi, grep, wc, etc). And since this is an ASCII transfer, the definition for the line termination codes will be handled locally on both sides. Each mainframe has its own JCL to define file characteristics and you'll need some help from the mainframe admins here. Note that you'll need to verify that the file description (SITE) command works correctly for the subsequent PUT command. Start with simple test files.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2007 11:08 PM
07-11-2007 11:08 PM
Re: file getting truncated
What u meant is correct. its getting truncated for every line. I am getting a file of line length 490 in which the last 10chars are getting truncated. No problem with site command. its working fine for small files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2007 11:21 AM
07-12-2007 11:21 AM
Re: file getting truncated
So it looks like the SITE file descriptor specified a record length of 480. You'll need to work with the JCL gurus at the mainframe to see what needs to be changed. This is likely an OS setting or limitation for the filetype definition. Be sure to look at the definitions for RECFM=VM and other record format choices.
Bill Hassell, sysadmin