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: 33
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: 1619
Location: Oregon

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: 33
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: 8725
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: 33
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 Picking up the latest PS file pema_yozer JCL & VSAM 8 Thu Oct 11, 2018 12:26 pm
No new posts Process only last key record in a fil... Naveen.katkuri24 DFSORT/ICETOOL 8 Tue Oct 09, 2018 9:39 am
No new posts ISPF 3.4 edit of a ps file, disp use... Carrie Da Silva TSO/ISPF 3 Fri Sep 21, 2018 3:01 am
No new posts ICETOOL - Finding keys within a file nartcr DFSORT/ICETOOL 10 Mon Sep 17, 2018 6:39 am
No new posts Remove selected duplicate rows from t... hnharish DFSORT/ICETOOL 3 Wed Sep 05, 2018 3:11 am

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