Page 2 of 2

Re: Need help-very new in mainframe

PostPosted: Thu Jul 01, 2010 10:18 pm
by tanaghosh
Hi,
Thanks for you input. i got what you want to say.
One more question. It is possible for you to understand if I want to attach two files in one email, should I write like:

ATTACH=My DSN Name1, My DSN Name2

OR

ATTACH=My DSN Name1
ATTACH=My DSN Name2

Thanks in adv :)

Re: Need help-very new in mainframe

PostPosted: Thu Jul 01, 2010 10:43 pm
by Robert Sample
One more question. It is possible for you to understand if I want to attach two files in one email, should I write like:

ATTACH=My DSN Name1, My DSN Name2

OR

ATTACH=My DSN Name1
ATTACH=My DSN Name2


Again I state: this is not standard SMTP -- it is something that has been put together on your site, or purchased from a vendor and customized to your site. Since I do not know the product used to do this, nor anything about the options of the product, I cannot even guess as to what the syntax would be IF two attachments are allowed. Contact your site support group and ask them. I understand perfectly well what you are asking -- and I am telling you that I am not the person to ask because I do not have an answer for you.

The standard, supported way of using SMTP to send two attachments in an email is:
HELO MAINFRAME.xxx.COM
MAIL FROM: <MAINFRAME@xxx.COM>
RCPT TO: <whoever@xxx.COM>
DATA
FROM:     MAINFRAME@xxx.COM
TO:       whoever@xxx.COM
SUBJECT:  ATTACHMENTS
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY="SIMPLE BOUNDARY"
--SIMPLE BOUNDARY
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=attach1.TXT

//         DD   DISP=SHR,DSN=<file name to attach>
//         DD   *
--SIMPLE BOUNDARY
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=attach2.TXT

//         DD   DISP=SHR,DSN=<file name to attach>
//         DD   *
--SIMPLE BOUNDARY--
//         DD   DISP=SHR,DSN=<file with trailing period>

Re: Need help-very new in mainframe

PostPosted: Fri Jul 02, 2010 12:10 am
by tanaghosh
Thanks a lot Robert :)