Solved

width of SNDDST Command in AS400

Posted on 2009-04-10
2
856 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
ID: 24118757
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
ID: 24118844
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to create custom bootable image of Centos 7.2 4 107
windows 10 free update 45 131
unable to send emails 3 57
Problem with Filesystemobject or .NET version 3 57
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 …
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

813 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