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

Problem while sending special character '{' in body of email


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ayush Shrivastava

New User


Joined: 07 May 2020
Posts: 5
Location: India

PostPosted: Tue Sep 07, 2021 9:23 pm
Reply with quote

Hi All,

I am trying to send an e-mail via JCL using IEBGENER utility. These below two characters are getting changed in the body of the mail.

'{' gets changed to 'æ'
'}' gets changed to 'å'

Somehow either outlook is not able to read them or there is some formatting issue. Maybe JCL is sending in plain text format whereas outlook is expecting html. Please suggest a solution. I tried using ASCII and html code of '{' in jcl as well but it didn't worked.

Code:

//AYUSH123 JOB (U811),'AYUSH',                                       
//             MSGCLASS=0,MSGLEVEL=(1,1),CLASS=U                                             
//*  EMAIL REPORT TO THE DESTINATION EMAIL ADDRESS                     
//EMAIL1    EXEC PGM=IEBGENER                                           
//SYSUT1    DD *                                                       
TO=User1@xyz.com                                               
SUBJECT=EVENT IN JSON                                             
MSG=                                                                   
{                                                                       
A
B
C
D                           
}                                                                       
//SYSUT2    DD SUBSYS=(ESF,A,,EMAIL123)                                 
//SYSIN     DD DUMMY                                                   
//SYSPRINT  DD SYSOUT=*


Result:

æ
A
B
C
D
å
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Sep 08, 2021 12:08 am
Reply with quote

This is like telling the world your nose bleeds when you write JCL.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1231
Location: Bamberg, Germany

PostPosted: Wed Sep 08, 2021 1:29 am
Reply with quote

Use the right Codepage for CA Spool Input or ask the guys in your shop how to do it properly.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 08, 2021 4:03 am
Reply with quote

Quote:
Somehow either outlook is not able to read them or there is some formatting issue
Or the third possibility -- which is the actuality -- is that EBCDIC does not have braces in its standard character set and hence there is no standard defined conversion to ASCII for those characters. Square brackets and braces are some of the characters defined in ASCII that are not defined in EBCDIC, and hence they usually cause problems. If you want to know how to handle them, you need to talk to your site support group or the vendor for assistance.
Back to top
View user's profile Send private message
Ayush Shrivastava

New User


Joined: 07 May 2020
Posts: 5
Location: India

PostPosted: Thu Oct 21, 2021 4:13 pm
Reply with quote

Thanks all for the support. Correct codepage was not present in the LPAR where I was testing, however it worked in higher LPARs due to presence of correct codepage for conversion. Thanks again! icon_smile.gif
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts REXX to send an email in Mainframe wi... CLIST & REXX 3
No new posts REXX to send an email in Mainframe CLIST & REXX 4
Search our Forums:

Back to Top