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.

Graphical user interface, text Description automatically generated

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:

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.

Graphical user interface, text, application Description automatically generated

Figure 4: Code snippet for the embedded extract.

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).

Graphical user interface, text, application Description automatically generated

Figure 6: Code snippet for extract as an attachment.

Graphical user interface, text, application, email Description automatically generated

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

The example pdf looks something like this:

Figure 8: Extract PDF.

 

 

Comment wrap
Further Reading
article-img
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.
article-img
Mainframes | October 14, 2020
Configuring Application Server in ZIETrans
With ZIETrans, you can create Web applications that provide an easy-to-use graphical user interface (GUI) for your 3270 applications running on System z® platforms and your 5250 applications running on IBM i operating system platforms.
article-img
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, or as standard SOAP or RESTful web services.
Close
Filters result by
Sort:
|