Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Moving a PS file as body of a mail!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Tue Nov 21, 2017 9:23 pm    Post subject: Moving a PS file as body of a mail!
Reply with quote

Hi all,

I need to send a mail with the contents of PS file (record length 80 and FB) as the body of mail.

I have coded the following:

Code:

//MAIL     EXEC PGM=IEBGENER                         
//OUTPUT   DD SYSOUT=*                               
//SYSIN    DD DUMMY                                   
//SYSUT1   DD DSN=CARD(card01),DISP=SHR 
//         DD DSN=file1,DISP=SHR
//SYSUT2   DD SYSOUT=(B,ZSPTCPM)                     
//SYSOUT   DD  SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                               


In the card I used:

Code:

HELO SYSA                           
MAIL FROM:<abc@gmail.com>
RCPT TO:<xyz@gmail.com> 
DATA                                 
SUBJECT:  TEST MESSAGE FROM MAINFRAME


I am able to send mail. But the mail is balnk i.e It does mot have a subject, from and to info...Just the body of the mail is present which is the contents in the PS file.

Could you please give me a solution to send mail with all details!

Thanks!
Back to top
View user's profile Send private message

vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1691
Location: Tiruppur, India

PostPosted: Tue Nov 21, 2017 11:17 pm    Post subject:
Reply with quote

You need additional SMTP tags, like below

Code:
HELO SYSA                                     
MAIL FROM:<WELLS@DANKMEMES.COM>     
RCPT TO:<WELLS@DANKMEMES.COM>       
RCPT TO:<WELLS@DANKMEMES.COM>       
DATA                                             
From:<WELLS@DANKMEMES.COM>               
To:<WELLS@DANKMEMES.COM>             
Cc:<WELLS@DANKMEMES.COM>             
Subject: Dank memes are ready                   
MIME-Version: 1.0
Back to top
View user's profile Send private message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Wed Nov 22, 2017 6:48 pm    Post subject:
Reply with quote

Thanks Vasanthz,

I tried adding the SMTP tags as suggested. Still I am getting a blank mail.

Please suggest me any way to solve this!

Thanks!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8795
Location: Welsh Wales

PostPosted: Wed Nov 22, 2017 7:10 pm    Post subject:
Reply with quote

I don't suppose that you had thought of telling us what the log says, or even better posting the log so that we may see

Your code is also a good help for those that wish to help
Back to top
View user's profile Send private message
Vignesh Sid

New User


Joined: 04 Sep 2017
Posts: 43
Location: India

PostPosted: Wed Nov 22, 2017 8:08 pm    Post subject:
Reply with quote

Hi all,

I changed HELO SYSA - SYSA to our system and now the mail has been genearted successfully.

Thank you all for reply!

Regars!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem getting record length of a re... amitc23 COBOL Programming 1 Thu Jul 02, 2020 10:52 pm
No new posts Want to check if trailer count is 0 a... rohanthengal JCL & VSAM 10 Fri Jun 26, 2020 10:47 am
No new posts File transfer to remote system using ... kalyan.lc5 TSO/ISPF 2 Wed Jun 24, 2020 1:24 pm
No new posts How to remove remote file older than ... ssuthagar All Other Mainframe Topics 4 Thu Jun 04, 2020 6:26 am
No new posts How to fetch the latest record from a... Dinesh Mani DFSORT/ICETOOL 8 Tue Jun 02, 2020 5:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us