.. _tn201411: Building a customized USSTAB using Virtel’s Web Access facility =============================================================== This technical newsletter describes how to build a VTAM USSTAB equivalent using Web Access facility. The process will cover:- - Modifying the tool bar. - Setting the correct fonts and keys. - Building a template to act as the USSTAB screen. All of these modifications are customised Java Script and HTML modules which will be kept in the default directory for the relevant Entry Point. In this sample the entry point EDSHOST is used. Here is what it looks like:- |screen1| Fig. 1 – Entry Point detail The entry point is associated with the line definition E-HTTP which looks like the following:- |screen2| Fig. 2 – Line detail The line and Entry Point combination will use the default transaction which can be found in the Entry Points transaction list. PF4 from the Entry Point display. In our case we default to the Entry Point name and therefore have set up a transaction called EDSHOST. The default transaction EDSHOST associated with the EDSHOST entry point will identify our default directory, EDS-DIR, where modifications will be uploaded to. The detail for the default transaction looks like:- |screen3| Fig. 3 – Default transaction EDSHOST **USSTAB template USSWSYSP** Template pages are the means by which VIRTEL presents host application data. In the customized USSTAB template called USSWSYSP, the template will simulate 3270 controls and actions through Java Script and HTML programming. Features like AJAX will also be employed in the background to maintain HTTP session state, however, those features will not be discussed in this newsletter. So to start with, this is the end result of our template customization and what the user will see when accessing the mainframe via the USSWSYSP template. |screen4| Fig. 4 – The template USSWSYSP display The URL for this template is *line_ip_address:line_port/entrypoint/:*\ USSWSYSP.HTML which in our case is 192.168.170.30:41003/EDSHOST/USSWSYSP.HTML. It looks very similar to what a VTAM USSTAB might produce. Notice that there is a tool bar on top with some functions and a cursor/row counter in the bottom right corner. To use the template, the user simply types in the name of an application in line 2, where the cursor is positioned. For example, typing in TSO and pressing enter will establish a TSO session from this template. If ENTER is pressed with no value on line 2 or any other key other than ENTER is used than an error message will be displayed. |screen5| Fig. 5 – Error message displayed as a result of pressing PFK9. So to access an application the VTAM application name is entered. Here we enter TSO on line 2 and press ENTER. |screen6| Fig. 6 – Establishing a TSO session After pressing enter a TSO logon panel will be presented. Note that the cursor/row display in the bottom right will update as data is typed into the line 2 row - just as you would expect from a 3270 emulation program. |screen7| Fig. 7 – TSO Logon panel When the disconnect ICON in the tool bar is pressed (Red Square) the screen will return to the USSWSYSP. This is because the ***lastpage*** parameter in the Entry Point definition has been set to /USSWSYSP.HTML. **USSWSYSP Logic** The template consists of some JavaScript and HTML. Most of the JavasSript relates to session state and presentation and should not be modified. Essential the template, using JavaScript, builds a 24*80 HTML presentation screen. On line 1 a title is displayed, see the variable *title* in the last