- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: corrupted reports from ASCII
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
04-13-2005 03:03 AM
04-13-2005 03:03 AM
We're moving from Linux into HP box, and while sending email attachments from new box most well formatted reports got corrupted: lines shifted.
There is
Anybody can suggest how to use
Thanks to all
Vlad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:13 AM
04-13-2005 03:13 AM
Re: corrupted reports from ASCII
I think you need a sendmail attachment script.
I'm away from the office or would attach you one. I have posted one numerous times to sendmail releated itrc threads if you are willing to do some itrc digging.
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
04-13-2005 03:20 AM
04-13-2005 03:20 AM
Re: corrupted reports from ASCII
I think I'm familiar with your script.
I think I can't use it, my shell run in batch scheduled by cron. And it works fine unless it breaks lines.
Vlad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:20 AM
04-13-2005 03:20 AM
SolutionMVS works in EBCIDIC format not ascii.
Please correct if incorrect:
Currently you transferring data from MVS to Linux and then sending email with data attached.
The New system will get the data from MVS to HPUX and then send email with data attachment
Is the data changed from EBCIDIC to ASCII before transfer or after (under Linux or HP). Is the transfer binary?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:27 AM
04-13-2005 03:27 AM
Re: corrupted reports from ASCII
We FTP data from MVS to Unix running job on MVS with no options , so I assume it's not binary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:36 AM
04-13-2005 03:36 AM
Re: corrupted reports from ASCII
We:
.. transferring data from MVS to Linux and then sending email with data attached using
The New system will get the data from MVS to HPUX and then send email with data attachment
using
Is the data changed from EBCIDIC to ASCII before transfer or after (under Linux or HP). Is the transfer binary? No, I think low-values caused file to shrink.
Vlad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:47 AM
04-13-2005 03:47 AM
Re: corrupted reports from ASCII
from what I remember working on MVS, MVS can handle EBCIDIC and ASCII transfers, so I would suggest converting the file on MVS to ASCII, checking format,transfer to HPUX, check format, and then use elm to send attachment.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:47 AM
04-13-2005 03:47 AM
Re: corrupted reports from ASCII
Check your ftp job from MVS. If the mode is ascii, then, as others mentioned you simply need the appropriate mail attachment syntax from unix.
We commonly ftp from the mainframe to unix and it is seldom done in binary mode. We encounter no EBCDIC conversion problems, with the execption of one application on unix that requires some data file character conversions prior to processing. I don't believe your issue to be similar to that.
I am attaching a file with a number of ways to mail out from unix.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 04:17 AM
04-13-2005 04:17 AM
Re: corrupted reports from ASCII
Can you guide me how to check format of file on Unix/Linux. sorry that I'm missing some basics, now I know that problem is low-values Hex'00' on MVS, if I edit those file replacing low-values with spaces everything is OK.
I'm limitied of using email with the folowing line in existing shell:
cat body bodyl > temp3
mutt -s " $FSUB $SUBJECT" -a $ATTFILE -c $MAILTO < temp3
I tried to use all options with
Thanks
Vlad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 04:51 AM
04-13-2005 04:51 AM
Re: corrupted reports from ASCII
Have tried the uuencode with the ux2dos command?
As far as using mutt goes, we use mailx almost exclusively here, thus I cannot help you with that syntax.
On another note, if you can translate the x'00' characters manually, you can add that step prior to your mailing.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 05:08 AM
04-13-2005 05:08 AM
Re: corrupted reports from ASCII
Right now I've solved this making
Though will try to play with unix2dos.
You meant to something like:
% tr [low-values] [spaces] < $MYFILE ???
Vlad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 05:53 AM
04-13-2005 05:53 AM
Re: corrupted reports from ASCII
Conversely, a UNIX file opened with Notepad on a PC will have black squares for each LF because Notepad expects a CR/LF pair. ux2dos adds a CR to every LF, and dos2ux takes away the CR from every CR/LF pair. That's all.
And this is exactly what ftp does with the ASCII option. Regardless of what type of a file you transfer, every CR/LF pair will be converted to LF and in the other direction, every LF character will have a CR added. That's why binary files get corrupted with the ASCII option in ftp. Always use the binary option
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 11:27 AM
04-13-2005 11:27 AM
Re: corrupted reports from ASCII
Just a clarification here. a hex'00' is an EBCIDIC null. If the file from MVS is a binary file, then by all means a binary transfer is in order. If it is simply an EBCIDIC file then ascii mode is likely in order.
Now that may differ in some environments, i.e. Bill's comments.
Suffice it to say, in our environment, we often ftp VSAM files and SD files to HP-UX as well as get files from unix, and ascii is the most used mode. Our mainframe IBM VM/VSE.
Best of luck on your resolution, but I think you are home free.
Regards,
dl
BTW - No points please for this post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2005 03:06 PM
04-13-2005 03:06 PM
Re: corrupted reports from ASCII
In other words, the records are accessed through the respective OS mechanisms. Thus, any type of file layout is acceptable on either end because only text records are actually transmitted. Contrast this with ftp's BINARY mode which is more like a dd copy. Most of the source file layout codes are sent over. Mainframe OS text files have numerous formats (fixed length, variable length, etc) but ftp works well for ASCII transfers.
For EBCDIC files, you still use ASCII mode (which really means: text files) and then run the result through dd and choose the EBCDIC conversion option.
Bill Hassell, sysadmin