Need help-very new in mainframe



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: Need help-very new in mainframe

Postby tanaghosh » Thu Jul 01, 2010 10:18 pm

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 :)
tanaghosh
 
Posts: 7
Joined: Thu Jun 03, 2010 11:37 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Re: Need help-very new in mainframe

 

Re: Need help-very new in mainframe

Postby Robert Sample » Thu Jul 01, 2010 10:43 pm

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>
Robert Sample
Global moderator
 
Posts: 3375
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 224 times

Re: Need help-very new in mainframe

Postby tanaghosh » Fri Jul 02, 2010 12:10 am

Thanks a lot Robert :)
tanaghosh
 
Posts: 7
Joined: Thu Jun 03, 2010 11:37 pm
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post