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

To bold the content of the dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Mon Nov 12, 2007 4:25 pm
Reply with quote

Hi,

I am automatically generating an EMAIL. My request is that in the mail content i need to bold some sentence.

for e.g. the content is

Todays defect

Cycle date: 04/11/2007
Defect identified: 044345
Defect identified: 664533

The output should be

Todays defect

Cycle date: 04/11/2007
Defect identified: 044345
Defect identified: 664533


Th date(04/11/2007) and 'Defect identified' shoud be bold.

The content is present in different data set. cycle date is in one and next two lines in another.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Nov 12, 2007 4:31 pm
Reply with quote

Unless you generate your email as HTML or RTF, I think you can't change a dataset content/caracteristics.

O.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Nov 12, 2007 4:45 pm
Reply with quote

ayappan,

Yes, as pointed out by ofer you need to generate the EMAIL as HTML.

You need to add HTML tags in the required places in the dataset and then attach it as an HTML.

BTW, which utility are you using for generating e-mails?
Back to top
View user's profile Send private message
ayappanb
Warnings : 1

New User


Joined: 22 Feb 2007
Posts: 24
Location: Chennai

PostPosted: Tue Nov 13, 2007 11:58 am
Reply with quote

I am executing one module to generate the email step.
How will I code in HTML? Just give me an example....
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Nov 13, 2007 12:29 pm
Reply with quote

ayappan,

Quote:
How will I code in HTML? Just give me an example....



Try this if you are familiar with REXX. Say you have a dataset A to be mailed. You will have to do the following.

1) Read the dataset A into a stem variable.
2) Add all the required HTML tags in the dataset by adding suitable logic.

After adding the tags your dataset should look like this.

Code:
<html>

 

<body>

 

<para>

Todays &nbsp; defect <br>

 

Cycle &nbsp; date: &nbsp; <b> 04/11/2007 </b> <br>

<b>Defect &nbsp; identified: </b> &nbsp; 044345<br>

<b>Defect &nbsp; identified: </b>  &nbsp; 664533 <br>

</para>

 

</body>


 

</html>


Attach this new dataset (after adding these tage) as a HTML file in the email JCL so that the report would be emailed as a HTML file.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top