IBM Security Z Security

Security for Z

Join this online user group to communicate across Z Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Fri March 28, 2025 12:39 PM

    I am using the Carla BUNDLEBY parameter to group output and send emails to different owners.  

    I would like to send the data within the body of the email, but the font in the email is always comes across as Courier New and could be mistaken for spam. Is it possible to change the font in the body of the email to something else and maybe highlight text by using bold? 



    ------------------------------
    Scott Lahner
    ------------------------------


  • 2.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Tue April 01, 2025 06:00 AM

    Hi Scott, 

    CARLa does not support a parameter that enables you to change the font in generated emails.
    However, CARLa does have support for generating output in XML format that you can post-process with XSLT stylesheets to a different layout.

    But that might not be what you were looking for.

    Regards,



    ------------------------------
    Tom Zeehandelaar
    z/OS Security Enablement Specialist - zSecure developer
    IBM
    ------------------------------



  • 3.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Wed April 02, 2025 09:12 AM

    Tom, would you have a simple example of generating Carla RACF output into XML format?



    ------------------------------
    Scott Lahner
    ------------------------------



  • 4.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Wed April 02, 2025 10:42 AM

    Hi Scott,

    this is a sample CARLa job that generates XML-formatted reports that are sent to a recipient as email attachment.
    It does not use BUNDLEBY, but you can tweak the job to fit with your company's requirements.

    // <== add a valid jobcard here!>
    //      JCLLIB  ORDER=(<supply the name of your JCLLIB here!>)    
    //GENXML  EXEC C2RC                                                     
    //C2REMAIL  DD SYSOUT=B,DEST=(TVT6004,SMTP),RECFM=VB                    
    //RACFPRIM  DD DSN=< name of your RACF input source goes here!>,DISP=SHR                  
                                                                            
    fileoption dd=c2remail fileformat=xml xml_datadict,                     
      xml_stylesheet=imbed(m=c2rxsl01) encoding=utf-8                       
    option dd=c2remail mailto=<your test email address goes here!>,                  
      from=zSecure-RACF_Admin@nl.ibm.com outputformat=attach,               
      emt=<your error mail to email address here!> replyto=<your reply to email address here!>            
    alloc type=racf active primary complex=<your complex name here!>                             
                                                                            
    newlist type=racf name=warning,                                         
    t="List of data sets and general resource profiles in WARNING mode; Plea
    se re-validate!",                                                       
    tt="Notes: Edit using Excel. Add your comments in field provided",      
    st="Save the table and email it to RACF Administration desk"            
      select class=(dataset,general) s=base warning                         
      define reqno('Change request number',22,blank$hdr) true               
      define remarks('Reviewers Remarks',20,blank$hdr) true                 
      sortlist class key('Profile name') owner(nd) reqno remarks            
    
    newlist type=racf name=highuacc,                                       
    t="List of data sets and general resource profiles in with HIGH UACC or
    ID(*) access. Please re-validate!",                                    
    tt="Notes: Edit using Excel. Add your comments in field provided",     
    st="Save the table and email it to RACF Administration desk"           
      select class=(dataset,general) s=base,                               
             (uacc>=update or acl(ID('*') and access>=update))             
      exclude class(nodes,digtcert,xfacilit)                               
      define sreqno('Change request number',22,blank$hdr) true             
      define sremarks('Reviewers Remarks',20,blank$hdr) true               
      define stripacl(aclaccess,20,'ID(*) Access') subselect acl(id='*')   
      sortlist class key('Profile name') owner(nd) uacc stripacl sreqno,   
               sremarks                                                    

    When I submit this job on my development system with my email address as the recipient, the reports get emailed to me as an attachment.
    BTW, the style sheet c2rxsl01 that this job uses to transform the data is the standard style_sheet that zSecure supports in the SCKRCARL library. But, you or your experts can write your own style sheet with the layout characteristics that you prefer. 

    I can then double click the attachment to open the attachment with my preferred browser or other application that can digest XML-formatted output:

    I hope that you find this answer useful.



    ------------------------------
    Tom Zeehandelaar
    z/OS Security Enablement Specialist - zSecure developer
    IBM
    ------------------------------



  • 5.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Wed April 02, 2025 10:51 AM

    Thanks for the sample, Tom. I'll try to put something together and do some testing, I may have some questions after my testing.  



    ------------------------------
    Scott Lahner
    ------------------------------



  • 6.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Fri April 04, 2025 12:57 PM

    I was able to write the output of my bundleby to C2REMAIL and play around a little with the html tags to change the font.  I need to read up a little on the different styles and tags, but I can probably manage to change the email a bit. 

    Tom, I ran the following job and I do see that it generated records and runs successfully but when I open the XML attachment, it's always empty. When I click on developer tools in the browser the data does appear to be there. Is there something in the xml code that would prevent my browser from opening the xml file? Or is it something I'm doing wrong with my jcl?

    //STEP1    EXEC PGM=CKRCARLA,MEMLIMIT=NOLIMIT
    //STEPLIB   DD DISP=SHR,DSN=OURLIB.SCKRLOAD
    //CKRCARLA  DD DISP=SHR,DSN=OURLIB.SCKRCARL
    //SYSPRINT  DD SYSOUT=*                                        
     //CKREPORT  DD SYSOUT=*                                        
    //C2REMAIL  DD SYSOUT=(B,CSSMTP)                               
    //SYSIN     DD * SUP  MSG=(27,28,29,210,286,293,1788,2226)                      
    fileoption dd=c2remail fileformat=xml xml_datadict,              
    xml_stylesheet=imbed(m=c2rxsl01) encoding=utf-8                
    OPTION dd=c2remail,                                              
    mailto=myself@domain.com,                            
     replyto=myself@domain.com outputformat=attach          
    ALLOC TYPE=RACF BACKUP ACTIVE ZSECNODE=.                      
    n type=racf segment=CSDATA n=test, 
    tt='Test sending email with xml'                        
    s c=user segment=CSDATA field1=y        
    sortlist Key('UserID',8) :field1('CSField',8)    

     



    ------------------------------
    Scott Lahner
    ------------------------------



  • 7.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Wed April 02, 2025 06:00 AM

    Hi Scott

    If you omit the SMTPCLASS and SMTPWRITER keywords in your CARLa, but instead allocate an output data set to your C2REMAIL ddname, you can look at the Mime stream that gets generated by zSecure.

    In the Mime stream you will find HTML to format the email, and it includes a <FONT SIZE="1"> tag. Yup, that is not supported by HTML5, but there you go, zSecure is old school.

    It would be simple to write a Rexx or other post-processor to go through the Mime data set and change (all) the <FONT SIZE="1"> into <FONT FACE="Comic" SIZE="1"> or a more appropriate font.  Note, the data generated in Mime is just characters aligned with spaces, so you should pick a monospace font like Consolas.

    The output of your post-processor can be sent to SYSOUT=B,WRITER=CSSMTP for distribution.



    ------------------------------
    Rob van Hoboken
    ------------------------------



  • 8.  RE: BUNDLEBY - Is there a way to change the font in the body of the Email

    Posted Wed April 02, 2025 09:09 AM

    Thanks Rob, I'll test it out and see what I can come up with.



    ------------------------------
    Scott Lahner
    ------------------------------