HCL SW Blogs
Select Page

With HCL ZIETrans, the user can create Web applications that provide an easy-to-use graphical user interface (GUI) for your 3270/5250 applications.

HCL ZIETrans makes it possible to build an application that can scrape data from the host, format it as required, and present the formatted data on an e-mail, programmed to trigger the e-mail automatically on any user action.

To achieve this, the user needs an SMTP server, like Gmail(smtp.gmail.com), Microsoft Outlook(smtp-mail.outlook.com), Yahoo(smtp.mail.yahoo.com), etc.

Let us consider the below HOST screen having a credit report.

Sending E-Mails From the Application in ZIE Transformation

Figure 1: Transformed screen in HCL ZIETrans displaying a credit report.

First, the user needs to create an HCL ZIETrans macro that extracts the data from the Host screen, for example:

Figure 2: Example Macro extract action.

And then convert the extract into a JSON Array like this:

Sending E-Mails From the Application in ZIE Transformation

Figure 3: Example converted JSON Array.

Next, the user can trigger e-mails with the help of popular libraries like Spring Mail.

Below are a few ways to present the host data in the e-mail.

  1. Using the code below, the user can format it and embed it directly into the e-mail body, as shown in figure 5.

Sending E-Mails From the Application in ZIE Transformation

Figure 4: Code snippet for the embedded extract.

Sending E-Mails From the Application in ZIE Transformation

Figure 5: Illustration of the e-mail with the embedded extract.

  1. Using the below code, the user can format it as a pdf/jpeg/png/etc. and add it as an attachment to the e-mail as shown in figure 7 (in the example, it is formatted as a pdf).

Sending E-Mails From the Application in ZIE Transformation

Figure 6: Code snippet for extract as an attachment.

Sending E-Mails From the Application in ZIE Transformation

Figure 7: Illustration of the e-mail with the extract added as an attachment.

The example pdf looks something like this:

Sending E-Mails From the Application in ZIE Transformation

Figure 8: Extract PDF.

 

 

Comment wrap
Further Reading
desktop-computer-beside-analog-camera-3759101
Mainframes | July 8, 2022
Accessing ZIETrans administrative console on Liberty server
The ZIETrans administrative console allows you to view and change problem-determination settings. It also allows: Select the scope of management, View log and trace files, etc.
Configuring Application Server in ZIETrans
Mainframes | October 14, 2020
Configuring Application Server in ZIETrans
With ZIETrans, create Web applications that provide an easy-to-use graphical user interface (GUI) for your 3270 applications running on System z® platforms.
Web Application Deployment in HCL ZIETrans
Mainframes | September 17, 2020
Organizing Web Application Deployment in HCL ZIETrans
HCL ZIETrans allows you to transform your user experience by extending 3270 and 5250 terminal applications to the web, portlet, rich client etc.
Close
Filters result by
Sort:
|