Solved

width of SNDDST Command in AS400

Posted on 2009-04-10
2
850 Views
Last Modified: 2013-12-06
Dear All,
Can any one provide me the limit Capabilities of SNDDST Command in AS400

I have a text file whose width  is 400 and saved in a folder
when i use SNDDST Command to forward the same to mail receipt it says command completed successfully
when i view the contents from mail it seems to of some unknown ASCI Code
I have attached the text file for your reference
please provide me the solution to resolve issue

Regards,
Bsidmis

3040956.TXT
0
Comment
Question by:Bsidmis
2 Comments
 
LVL 16

Assisted Solution

by:theo kouwenhoven
theo kouwenhoven earned 60 total points
Comment Utility
Hi Bsidmis,

This is the same question as http://www.experts-exchange.com/OS/AS_-_400/Q_24301308.html,

Where is the file on the moment you send it with SNDDSTMSG ?
on the AS/400 file system or in a folder ?

Regards,
Murph
0
 
LVL 27

Accepted Solution

by:
tliotta earned 65 total points
Comment Utility
Bsidmis:

What do you mean by:

>  when i view the contents from mail...

What is "mail" in that statement? Outlook? Thunderbird? A mail folder on your AS/400?

Do you _want_ the attachment in ASCII? Technically, it _has_ to be ASCII printable text, or SMTP cannot send it. If it isn't, you will have to have it encode as a MIME attachment, e.g., as BASE64 encoded. Your e-mail sending program will have to encode the attachment and mark the attachment header so that the e-mail client knows how to decode the attachment.

For example, if the document is EBCDIC, you probably shouldn't be sending it over SMTP without creating a MIME attachment for it.

SNDDST doesn't do that for you. It's not intended to do it. It's intended for sending (SND) SNA distributions (DST).

If you want to send ASCII e-mail with SNDDST, you probably need to create the document as ASCII text. If you can't do that, then you need to use an ASCII e-mail program to send it, and that program needs to do the MIME encoding and attaching.

To understand what might be happening, you probably should start by reading SMTP RFCs. Here's a beginning one:

http://james.apache.org/server/rfclist/smtp/rfc0821.txt

Search the page for the word [ASCII] to see the basics. Note that the "128 character ASCII" set is all that's allowed. One consequence is that an EBCDIC zero (0), which is hex'F0', can't be sent across SMTP without first being encoded. The same is true for every EBCDIC character that has a hex value greater than x'7F'.

There is more to sending across the internet than just "sending". The stuff that is sent has to be in a form that is appropriate. SNDDST doesn't do everything needed unless you're sending within a SNA network.

Tom
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
Windows 7 does not have the best desktop search built in. This is something Windows 7 users have struggled with. You type something in, and your search results don’t always match what you are looking for, or it doesn’t actually work at all. There ar…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now