IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Mail format in outlook from mainframes.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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: 2449
Location: Hampshire, UK

PostPosted: Thu Sep 03, 2015 4:51 pm
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: 1689
Location: Tiruppur, India

PostPosted: Thu Sep 03, 2015 5:08 pm
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: 1689
Location: Tiruppur, India

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

See also my previous post:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Converting a file from PD to display ... SYNCSORT 4
No new posts Date format conversion DFSORT/ICETOOL 4
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts Insert System Runtime in HEADER In SY... SYNCSORT 9
No new posts Schedulers on Mainframes JCL & VSAM 7
Search our Forums:

Back to Top