Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Mail format in outlook from mainframes.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Madhusudhan Prahlad

New User


Joined: 31 Aug 2015
Posts: 6
Location: India

PostPosted: Thu Sep 03, 2015 11:27 am    Post subject: Mail format in outlook from mainframes.
Reply with quote

Hi,
I am trying to trigger an email from mainframe which contains data in tabular form using BATCHTMP.

//IVP0 EXEC BATCHTMP
//INDD DD DISP=SHR,DSN=TEST.OUT
//SYSIN DD *
%XMITIP (ABC.COM) -
SUBJECT 'TEST LE' -
FROM XYZ.COM -
MSGDD INDD
/*
But I am not getting the format in COURIER NEW style due to which the content is not alligned. please my output below.

EXTRACTED DATE|2014266(COUNT)|2014267(COUNT)|
--------------|--------------|--------------|
01/09/2015 |001 |

Could anyone please help me in getting the correct format (COURIER NEW) in the outlook.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Thu Sep 03, 2015 4:51 pm    Post subject:
Reply with quote

Select Courier New font "in the outlook" by which I think you mean "in Outlook". Tme mainframe basically uses a fixed pitch font and does not know about these fancy fonts on the PC. These are set on the PC in whichever application you want that font.

BTW, the fact that the mainframe uses a fixed font is why you should always use the code tags when showing mainframe stuff in the forum because the forum uses a variable pitched font and HTML also removes extra spaces.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Thu Sep 03, 2015 5:08 pm    Post subject:
Reply with quote

Hello,

You could format your PS file as a HTML document and make outlook format it with monospace format. It is not technically XMITIP solution. It uses SMTP.

The following assumption is made: Your SMTP SYSOUT is (B,SMTP)

Input PS file:
Code:
Command ===>
****** ***************************** Top of Data **
000001   HELLO THIS     IS     SPARTAA
000002   ALL   YOUR     BAZEZ  BELONG   TO UZ
****** **************************** Bottom of Data


Output outlook email:
Code:
  HELLO THIS     IS     SPARTAA                                                 
  ALL   YOUR     BAZEZ  BELONG   TO UZ   


The code:
Code:
//EMAIL    EXEC  PGM=IEBGENER
//SYSUT1   DD  *
HELO LPAR
MAIL FROM:<VASANTHZ@TROLLLAND.COM>         <- From email address
RCPT TO:<VASANTHZ@SOMEEMAIL.COM>          <- To email address
DATA
FROM: VASANTHZ@TROLLLAND.COM         <- From email
TO: VASANTHZ@TROLLLAND.COM          <- To email

SUBJECT: THIS IS A TEST EMAIL
MIME-VERSION: 1.0;
CONTENT-TYPE: TEXT/HTML
<html>
<body>
<pre style="font: monospace">
/*
//         DD DSN=YOUR.PS.REPORT.FILE,DISP=SHR         <- The PS file you are sending as email
//         DD *
</pre>
</body>
</html>
/*
//SYSUT2   DD  SYSOUT=(B,SMTP)                 <- Your SMTP output SYSOUT
//SYSIN    DD  DUMMY
//SYSOUT   DD  SYSOUT=*
//SYSPRINT DD  SYSOUT=*
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Thu Sep 03, 2015 5:40 pm    Post subject:
Reply with quote

See also my previous post:

http://www.ibmmainframes.com/viewtopic.php?t=63584&highlight=outlook
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us