- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unknow characters
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
02-06-2007 08:41 AM
02-06-2007 08:41 AM
Unknow characters
We are getting a file from mainframe for our unix box through the connect direct software which has special characters. My question is how to deal with these special characters ( ^@ ) while the file is being transfered ( at the time of transfer ) over from mainfraime to our box through connect:direct ( NDM ). The special character is not visible during "vi" but is visible while doing a "less filename"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 08:58 AM
02-06-2007 08:58 AM
Re: Unknow characters
tr -cd "[ -~\012]" < infile > outfile
This will delete all characters not in the range
If these special characters are binary data then you will have to craft a custom conversion. Perl is very good at doig selective EBCDIC to ASCII conversion and can convert one binary data format to another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2007 09:02 AM
02-06-2007 09:02 AM
Re: Unknow characters
Is the data supposed to be readoable ascii, or perhaps ebcdic or binary/raw data
Control-
The best way to analyze the situation is to use 'od' or 'xd' in some flavor ( -c ).
It the data is supposed to be text already, then you may need to write a little post-transfer filter (perl? tr -d \0000 ?).
For better help please consider a reply with
an .txt attachment with output from
head -10
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2007 01:35 AM
02-08-2007 01:35 AM
Re: Unknow characters
What was the outcome?
Regards,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:43 AM
02-13-2007 09:43 AM
Re: Unknow characters
thanks,
hunki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:45 AM
02-13-2007 09:45 AM
Re: Unknow characters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 09:47 AM
02-13-2007 09:47 AM
Re: Unknow characters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 10:34 AM
02-13-2007 10:34 AM
Re: Unknow characters
I do see the first head command being followed by and empty line (edit error?) and then a 'funny' character with valye 0xE2 (226 decimal). I was guessing it might be a line length, but that appears to be 101 (decimal)
If you want to fix whatever the first char is to become a space, then you could probaly use (untested):
perl -pe "s/^./ /" >
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2007 11:18 AM
02-13-2007 11:18 AM
Re: Unknow characters
I would display the file in hex+ASCII so you can see everything else that needs fixing:
xd -xc mainframe.file | more
Note that if you are transferring the file first from mainframe to a PC and then PC to HP-UX, there other precautions you need to take to preserve the data.
Bill Hassell, sysadmin