Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums 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: 25
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: 1532
Location: Chennai

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: 25
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: 8619
Location: Back in jolly old England

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: 25
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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Prblem with mail having MIME contents harsh.saxena579 JCL & VSAM 2 Tue Dec 12, 2017 3:48 pm
No new posts Unable to send mail with SMTP commands harsh.saxena579 JCL & VSAM 10 Tue Dec 12, 2017 1:58 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am

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