Web-Enabling 5250 Apps with WebFacing
Web-Enabling 5250 Apps with WebFacing
iii
iv Web-enable a 5250 application with the IBM WebFacing Tool
Web-enable a 5250 application using the IBM WebFacing Tool
This tutorial teaches you how to use the IBM® WebFacing Tool to Web-enable a 5250 application. You
learn about customizing the output of the conversion process using the IBM WebFacing Tool and the
LPEX Editor and you learn how to run the WebFacing application in the WebSphere® Test Environment
that is part of the product. You also learn about deploying the application to the WebSphere Application
Server and mixing a WebFacing application with a non-WebFacing application.
Learning objectives
v Convert DDS screens in an existing application to a Web browser user interface using the IBM
WebFacing Tool
v Customize the Web browser user interface after conversion
v Run the customized WebFacing application
v Deploy a WebFacing application to a product WebSphere Application Server
v Mix a WebFacing and non-WebFacing application
180 minutes
Introduction
While creating a browser user interface, you will learn how to use the IBM WebFacing Tool. You will
customize the output of the conversion process using the IBM WebFacing Tool and the LPEX Editor.
Next, you will learn how to run the WebFacing application in the WebSphere Test Environment that is
part of the product. You will also learn how to use Page Designer to customize the application start page
and you will learn how to publish and deploy your WebFacing application to a remote WebSphere
Application Server (this is an optional module). Finally you learn how to run a WebFacing and
non-WebFacing application using the IBM WebFacing Tool extensions in Development Studio Client.
Learning objectives
v Review an existing 5250 order entry application before creating a browser user interface for it
v Create a WebFacing project for the converted application
v Convert DSPF and UIM source
v Run the WebFacing application in the WebSphere Test Environment
v Customize the WebFacing application browser user interface
v Run the customized WebFacing application in the WebSphere Test Environment
v Deploy the customized WebFacing application to a production server
v Enhance the WebFacing application browser user interface further using Web Tools
v Run a mixed WebFacing and non-WebFacing application
Time required
This tutorial should take approximately 180 minutes to finish. If you explore other concepts related to this
tutorial, it could take longer to complete.
1
Skill level
Introductory
Audience
iSeries programmer
System requirements
v IBM WebSphere Development Studio Client for iSeries™, V 7 and all software updates through the IBM
Installation Manager.
v CoOperative Development Environment and VisualAge® RPG (separate CD in the product). The CODE
Designer is required for editing the converted WebFacing application.
v i5/OS® V5R2 or greater (V5R4 is necessary for the part in this tutorial where you mix a WebFacing and
non-WebFacing application).
v The WebFacing runtime server is started:
– STRTCPSVR *webfacing
– Verify jobs QQFWFSVR and QQFVTSVR are running. Use the command WRTACTJOB JOB(QQF*).
Make sure the user ID starting the WebFacing server has *USE authority for *PUBLIC user for object
type *LIB and object type *OUTQ.
v iSeries Access for Windows® or IBM Personal Communications with 5250 emulation
v IBM WebSphere Application Server for iSeries is installed on an iSeries system (required if you want to
do the optional module on deploying your WebFacing application to a production server). Your
administrator will need to set up and start the WebSphere Application Server and an associated HTTP
server on your iSeries server.
v Check with your system administrator to ensure that your user ID has the necessary authority to create
and access IFS folders.
Prerequisites
v Basic Microsoft® Windows operations such as working with the desktop and basic mouse operations
such as opening folders and performing drag-and-drop operations
v Basic knowledge of how Web applications work
v Basic knowledge of how to use a browser to navigate the Internet
v Restore the WFLABXX savefile ([Link]) on an iSeries system:
– Import the WFLABXX project to your workspace.
– Open the Project Explorer view by clicking Window → Show View → Other → General → Project
Explorer.
– Expand the wflabxx project.
– Right-click the [Link] savefile, and select Restore on iSeries.
v Extract the file [Link] to your C drive:
– Open the Project Explorer view by clicking Window → Show View → Other → General → Project
Explorer.
– Expand the wflabxx project.
– Right-click the [Link] file, and select Export.
– Export the file to the local file system.
– On the local file system unzip the file [Link].
v If you move the WebFacing applications to production, you need to buy a WebFacing Deployment Tool
with HATS technology (WDHT) license. IBM WebSphere Development Studio Client for iSeries is
limited to two user connections for testing purposes.
Upon completion of this tutorial you will know how to use the IBM WebFacing Tool to create and
customize a browser interface for an existing customer inquiry application written in RPG.
Completing this module will also test your user profile setup. If you can run this application directly
without changing the job environment on the iSeries, the WebFacing conversion and the WebFacing
server will not have problems during the remaining lessons later.
You will use a 5250 emulation screen to start the sample Order Entry application. You will be prompted
with the first screen for a customer number. You will work with the help panels this application provides.
You will select a customer from the list of valid customers and then go through the steps of filling an
order by specifying the quantity ordered. After all parts and their quantities for this order have been
specified you complete the order by pressing a specific command key. The application will then prompt
you for a new customer number to handle the next order.
Tip: If you have problems make sure the library list for your job is setup correctly to include library
WFLABXX at job start up.
Learning objectives
v Start a 5250 emulation session
v Call the order entry application
v View the customer selection screen
v Display help for the customer number field
v Display help for selecting a customer
v Display help for specifying a valid customer number
v Display extended help for the customer number field
v Display the customer selection list
v Select a customer from the list
v Display the parts selection list
v Select a part from the list
v Specify the part quantity
v Accept the order
v Exit the application
Time required
You have started a 5250 emulation session, invoked the order entry application and seen the customer
selection screen.
Lesson checkpoint
You learned the following:
v How to start the 5250 emulator from your workstation
4. Press command key F12 to return to the help for the Customer number field.
5. To see help for the second choice, move the cursor underneath the 2 in the help area and press the
Enter key.
Now you see detailed help for specifying a valid customer number.
8. Press command key F12 to leave the extended help for the Customer number field.
9. Press command key F12 again to leave the help for the Customer number field.
You have displayed help for the customer number field, for selecting a customer, for specifying a valid
customer number and extended help for the customer number field.
Lesson checkpoint
You learned the following:
v How the online help works in the 5250 application
Selecting a customer
Now you have an understanding how the help panels in this application work and look. Next you need
to identify the customer related order. You have the choice of specifying a valid customer number, or you
To select a customer:
1. Press command key F4 to display the customer selection list.
A list of customers displays.
You’ll notice that an order number has been assigned as well. You are ready to order some parts.
You have displayed the customer selection list and selected a customer from the list.
Lesson checkpoint
You learned the following:
v How selecting a customer works in the existing 5250 application
2. In the Opt field, type 1 next to a part that has lots of quantity left and press Enter.
Back on the order screen, the part appears in the order; on the top line of the parts list.
You have displayed the parts selection list, selected a part from the list and specified the part quantity.
Lesson checkpoint
You learned the following:
v How the order entry panel works in the 5250 application
Lesson checkpoint
You learned the following:
v How the application works to complete an order
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v How to start a 5250 emulation session
v How the application works
Assessment
v How do you start a 5250 emulation session?
v How does the 5250 application work?
Learning objectives
v Start the product
v Set the default workspace
v Access unique views and tools targeted towards the WebFacing tasks
v Specify a name for your WebFacing Web Project
v Select a Web style for your converted application
v Connect to an iSeries server
v Select source members to convert
v Specify the CL command to invoke the application
v Specify the application signon values
v Create the WebFacing Web Project without converting files
Time required
2. Accept the default directory structure but change the name of the workspace directory to the name
WFLABxx where XX is a unique number.
3. Click OK.
After a few moments of loading, the workbench opens, and the initial window of the product opens.
You have started the product and set the default workspace.
Lesson checkpoint
You learned the following:
v About workspaces
v How to start the product
The WebFacing Tool provides it’s own perspective since it needs to give its users access to unique views
and tools targeted towards the WebFacing task. To create a WebFacing Web project you can either open
the WebFacing perspective or you can create a WebFacing Web project without opening the WebFacing
perspective. To create a WebFacing Web project without opening the WebFacing perspective, see the next
lesson.
Click Window > Open Perspective > WebFacing from the workbench menu.
The workbench now shows the WebFacing perspective with the WebFacing Projects view open in the left
pane of the workbench.
You have accessed unique views and tools targeted towards the WebFacing tasks through the WebFacing
perspective.
Lesson checkpoint
You learned the following:
v About the RSE perspective
v About the WebFacing perspective
v How to open the WebFacing perspective
You have specified a name for your WebFacing Web Project, and accepted default values for the Project
Facets page, Web Module page and Struts Settings page.
Lesson checkpoint
You learned the following:
v About WebFacing projects
v How to start the WebFacing project wizard and give a name to the WebFacing project
Lesson checkpoint
You learned the following:
v How to select a Web style for your converted application
First since you are starting with a new workspace, you need to specify the iSeries server name to specify
where the Data Description Source (DDS) is located.
1. To connect to an iSeries:
a. Click New beside the Connection name list.
d. In the Host name field, type the name of the host system, for example s400a.
Note: This is your iSeries server name; don’t use the one shown unless your system is named
s400a.
The connection name will be filled automatically with the same value.
e. Leave the Verify host name check box selected to verify that the host name or IP address exists.
f. Click Finish.
The connection is created and can be re-used by all tools in the [Link] connection wizard
also checks whether the iSeries host can be reached and if this test is successfully completed, you
return to the Select Source Members To Convert page.
g. Check that your iSeries server is selected in the Connection list.
j. In the User ID field, type your user ID. Use the same user ID that you used when running the
Order Entry application in “Reviewing the 5250 order entry application” on page 3.
k. In the Password field, type your password.
l. Select the Save user ID check box.
m. Select the Save password check box.
n. Click OK.
A connection to the iSeries server gets established. The library list of your iSeries job is displayed
under the Refresh list button on the Select Source Members To Convert page.
Tip: To move all members in a source file you can select the source file icon itself and click the
push button. This will add all members in a source file to the list of members to be
converted.
The WebFacing Tool now knows which DDS members to convert for this project. The conversion
hasn’t been done but the information is stored for future use.
Next you select UIM source members.
3. To select UIM source members to convert:
a. Select the QPNLSRC source file from the expanded list of library WFLABXX.
b. Click push button in the middle of the page to copy all members over to the list of
members to be converted at the right
There is actually only one panel group member ORDENTRPNL in this source file.
c. Click Next to proceed to the next page of the wizard.
The Specify CL Commands page opens.
You have connected to an iSeries server, selected DDS source members and UIM source members to
convert.
Why should you remember? The WebFacing run time needs to know the invocation command for your
application in order to send this invocation command to the iSeries server to start your application from
the browser. The page in the WebFacing Web Project wizard will allow you to specify the necessary
information CL command and Sign on information.
Tip: If you don’t type anything into the Command Label field, the CL command input will be copied
into this field.
3. Leave the default value INV1 in the Invocation name field.
4. Click the Specify OS/400 signon values radio button.
This will automatically apply the user ID and password you used when you connected to your iSeries
server in the previous dialog for selecting source members for invocation of this application. You will
use this setup here for testing purposes to make it easier for you to start the Order Entry application
without specifying the authentication information. Don’t worry about security in your production
environment, this can be easily changed later and you will see how to do this later in this tutorial.
5. Click Add on the right side of the page.
Tip: Make sure the text and command you typed into the fields are actually shown in the CL
Command table at the bottom of the page.
6. Click Next at the bottom of the wizard page.
The Complete WebFacing Project page opens.
You have specified a CL command to invoke the application and the application signon values.
Lesson checkpoint
You learned the following:
v What the invocation command does
v About the information required to create the Web page to start the application
v How to specify the CL command to invoke the application
You will just create the WebFacing project. You don’t need to convert the source now. Conversion is part
of the next module.
Tip: If you created the WebFacing Web project from the Remote System Explorer perspective, you will
see a dialog asking you to confirm the switch of the perspective to the WebFacing perspective. Click
Yes.
The workbench opens in the WebFacing perspective with your new WebFacing project in the
WebFacing Projects view.
3. Click each folder or file. Click the plus + sign beside each file or folder.
Tip: If you later need to add source members to the WebFacing project, right-click the DDS or UIM
help icon and click Add on the pop-up menu. This will launch the WebFacing Web Project wizard and
display the correct dialog.
Lesson checkpoint
You learned the following:
v About the files added to the WebFacing project
v How to create the WebFacing project without converting files
v How to add source members to an existing project
Module summary
In this module, you created a WebFacing project and in this project you specified which display file
source and panel group source to convert and which iSeries server these source members are located on.
The WebFacing Tool will use this information during the conversion process.
You have to specify in this next module whether you want to convert all source members belonging to
this project or selected ones only. A word regarding security, in case you are wondering, why you don’t
have to logon to the iSeries server during conversion, it is because, your user ID and password have been
stored during the WebFacing project setup, and will be re-used here.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v About the workspace
v About the WebFacing perspective
v How to start the product
v How to set the default workspace
v How to access unique views and tools targeted towards the WebFacing tasks
v How to complete the WebFacing Web Project wizard
Assessment
v What is the WebFacing perspective?
v What is a WebFacing project?
Learning objectives
v Select members to convert
v Convert members
v Check reference keywords for errors
v Check the DSPF conversion log for errors
v Check the UIM conversion log for errors
Time required
If the WebFacing perspective with your project is not visible, you need to open the WebFacing
perspective.
1. To open the WebFacing perspective:
a. Check the taskbar of the workbench for the WebFacing perspective icon and if you find it, click on
the icon to switch to the WebFacing perspective that is already open but not active at the moment.
Tip: Avoid having too many instances of the same perspective open. It will improve performance
of the workbench if you restrict yourself to one instance of a specific perspective being open. We
have seen situations with 50 perspectives being open at the same time; this has caused severe
performance impacts, so be careful.
Here you see the icons on the taskbar of the workbench. The Remote System Explorer perspective
is active. The workbench window title bar shows this. Four perspectives are open in the
workbench.
Tip: The icon on top of the taskbar allows you to open a new perspective.
Next you start the conversion in the WebFacing perspective.
2. To select members to convert:
a. Select the WebFacing project you have been working on in the previous module, wflabxx.
b. Expand this project by clicking the plus sign (+) beside its icon in the WebFacing Projects view.
Lesson checkpoint
You learned the following:
v About perspectives
v How to select members to convert
Tip: You could select individual members to convert as well as expanding the DDS node.
1. Right-click the wflabxx WebFacing project.
Wait until the progress dialog disappears, indicating the WebFacing conversion has finished.
Lesson checkpoint
You learned the following:
v How to convert members
As you click each tab you will see more details about each log.
You converted the DDS source and panel group source so it is now available in a form a browser
understands. The first important step to move your application to the Web is done. Notice, the
conversion itself was pretty easy, because you already did the hard part when you created the WebFacing
project. Now that the project exists, the WebFacing Tool has all the information readily available, and
even having to re-convert later because of changes in the original source is not a big problem.
Lesson checkpoint
You learned the following:
v How to check the conversion logs
Module summary
You have used the WebFacing Tool to convert the user interface of the Order Entry application and you
now want to see the conversion results. The WebFacing Tool created a complete Web application that can
be run in an Application Server. The WebSphere Application Server test environment and the Web project
The [Link] file that has been created by the WebFacing conversion routine is part of this Web project. It
will be used as the default page for this Web application. When the application is up and running you
will go through the same scenarios as in “Reviewing the 5250 order entry application” on page 3 when
you went through the green screen panels of the Order Entry application but now you are using the new
WebFacing user interface.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Select members to convert
v Convert members
v Check reference keywords for errors
v Check the DSPF conversion log for errors
v Check the UIM conversion log for errors
Assessment
v How do you select members to convert?
v How do you convert members?
v How do check for conversion errors?
In your real application development environment, you would test thoroughly in the test environment;
then export the WebFacing project files to a remote WebSphere Application Server for final testing, before
moving the Web-enabled application to your production WebSphere Application Server environment.
“Exporting to iSeries WebSphere Application Server (Optional)” on page 105 shows you the steps
required to deploy to a remote WebSphere Application Server environment. Until you are sure your
WebFacing application is ready for public use, you can use the test environment on your workstation,
which simplifies the testing of Web applications.
This module teaches you how to test your WebFacing application in the WebSphere Test Environment.
You will learn how to specify in the WebFacing perspective that you want to run your project in the
WebSphere Test Environment. From the initial Web page, you will learn how to select the link created by
the WebFacing Tool to invoke the WebFacing Order Entry application.
Learning objectives
v Set the WebSphere Test Environment to test the application locally
v Launch the WebFacing application
v Prompt for a customer
v Select a customer from a list of customers
v Prompt for a part
v Select a part from a list of parts
v Enter a quantity for a part
Web-enable a 5250 application using the IBM WebFacing Tool 31
v Display help for the customer selection list
Time required
You have set the WebSphere Test Environment to test the application locally.
Lesson checkpoint
You learned the following:
v About the minimum memory required for WebSphere Application Server
v How to start the order entry application
v How to enlarge the browser window
8. Enter a quantity.
9. Press the Enter key.
10. Continue ordering one or two more parts.
11. Press command key F6 to accept the order.
You have launched the WebFacing application, prompted for a customer, selected a customer from the list
of customers, prompted for a part, selected a part from a list of parts and entered a quantity for a part.
Lesson checkpoint
You learned the following:
v How to test the WebFacing application locally in the WebSphere Test Environment
You have displayed the help for the customer selection list.
Lesson checkpoint
You learned the following:
v How to see the help in the WebFacing application
Module summary
In this module you saw how an application looks after converting the user interface with the WebFacing
Tool. You also saw one of the standard styles available (gradient) with the WebFacing Tool. You can
customize these styles.
You will be guided through the Web Setting capabilities in CODE Designer to make the necessary
modifications. You will change the second column in the customer selection subfile, which contains the
customer name, from a simple text output field to a link. When you click on this new customer name
link, the correct information your program expects is sent. You might ask what is the correct information?
What is your program expecting? It is expecting a 1 in the subfile options field for the selected customer
record. The program will receive the same information after you change the user interface.
The WebFacing conversion will add logic to the user interface, so that the options field is filled with a 1
and the Enter key event is invoked when the link is pressed. You enhance the user interface and don’t
have to change the application, this sounds pretty impressive doesn’t it.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Set the WebSphere Test Environment to test the application locally
v Launch the WebFacing application
v Prompt for a customer
v Select a customer from a list of customers
v Prompt for a part
v Select a part from a list of parts
v Enter a quantity for a part
v Display help for the customer selection list
Assessment
v What is the WebSphere Test Environment?
v How do you launch the WebFacing application in the WebSphere Test Environment?
v How do display help in the WebFacing application?
CODE Designer is the GUI-based screen design tool for 5250 panels. It allows you to change certain
aspects of the user interface related to the WebFacing conversion process. CODE Designer stores the Web
Setting information as comment lines in the DDS source. When you convert the application using the
IBM WebFacing Tool, these DDS source comment lines are picked up and applied to the new user
interface. This module teaches you how to change the user interface of your WebFacing application with
CODE Designer. In the WebFacing perspective you will learn how to select a DDS source member to
work with; start CODE Designer to open this DDS member; work with Web Settings in CODE Designer
to change the Web look, and then reconvert the DDS member.
Learning objectives
v Locate a DDS source member
v Open a DDS source member with CODE Designer
v Create a hyperlink action for the option field
Time required
First you start the product and open the WebFacing perspective. Skip this step if the product and
WebFacing perspective are already open.
1. To start the product and open the WebFacing perspective (optional):
a. Start the product and open the WebFacing perspective, if it is not up and running already.
b. In the WebFacing perspective, make sure that you are in the WebFacing Projects view and not the
Navigator view.
c. Expand your project in the WebFacing Projects view by clicking on the plus sign (+) beside the
WebFacing project icon if not already. Next you open CODE Designer.
2. To open CODE Designer:
a. Locate the DDS display file source named STLCUSTD.
b. Right-click SLTCUSTD and click Open with > CODE Designer on the pop-up menu.
You have located the DDS source member and opened it with CODE Designer.
h. Select the Create hyperlink check box to the right of the list.
i. Clear the Override browser’s hyperlink appearance with DDS appearance check box.
j. Click the Action hyperlink radio button.
k. Leave the Position cursor to field check box selected.
l. From the list under the Position cursor to field select the &{OPT} value.
m. In the Enter data list type 1.
This indicates that you want a 1 to be entered in the Options field when the hyperlink is clicked.
n. Select the Submit check box.
o. Leave the Function key radio button selected.
p. Select ENTER from the Function key list.
To recap, you specified the following, when the application gets converted with the WebFacing
Tool; the customer name cells in the subfile will be generated so they appear as links in the
browser window. At run time, when the link is clicked, a 1 will be placed in the Option field.
Also, a submit request will be initiated to generate the equivalent of pressing the Enter key and
the cursor will be positioned in the Option field for the selected row.
You have accomplished the basic task, but the user interface now has an Option column that
doesn’t belong there since it is not needed with the new link. Also the instructions on the page on
how to select a customer are wrong. You want you to fix this with Web Settings as well before you
test this new feature.
Next you hide the option field.
On the Design page, you now need to select the Opt field to indicate that you want to work with
it:
Only one record format in a group is active at a time. The record format name is listed in the top
field of the record list. Also in the Design page all parts in the active record format are shown
highlighted but the inactive record format content is half-intensity. You see this effect very clearly
above. Until now you have been working with the subfile record format CUSTSFL only, but now
you need to clean up the subfile control record format CUSTCTL, so you need to make it the
active record format or another way to describe this, give it focus.
3. To hide the option heading Opt Customer:
a. To shift focus to another record format, at the top of the Design page, click the arrow.
Note: You can’t just change the 5250 constant because you might still use this screen in a 5250
environment, you have to use Web Settings to apply this change to the Web user interface only.
5. To change the instruction text:
a. Select the instruction constant (Type choices press Enter) on the Design page.
b. On the Web Settings page, select Appearance and Text from the list.
c. Select the Override constant text check box, and type the new text Click on link to select in
the field to the right of the check box.
Now all Web Settings are in place and you can go ahead and save the DDS source and reconvert
this DDS member.
Now you are ready to close CODE Designer.
6. To close CODE Designer and re-convert the DDS member:
a. Click the X button at the top right corner of CODE Designer.
You have created a hyperlink action for the option field, hidden the option field, the option heading and
the select instruction, changed the appearance of text, closed CODE Designer and reconverted the DDS
source member.
Lesson checkpoint
You learned the following:
v How to open and close DDS in CODE Designer
v How to apply Web Settings in CODE Designer
v About CODE Designer
v About Web Settings
v How to reconvert changed source
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
ensure that you select the same server on the dialog now. For example, if you had previously selected
WebSphere V6.1 Server, ensure that you select that server now.
3. Go to the browser pane and click the Launch button.
You will see the first screen of your application. Nothing has changed there.
4. Click the Prompt push button, or press command key F4.
The customer selection window appears and the customer fields are shown as links. Also notice the
changed text and the non-visible option column.
Tip: If the customer selection window is still showing the old option selections, most likely the
browser has cached the page and you need to close the browser window, and restart the application.
This will open a new instance of the browser without cached content.
5. Select a customer from the list by clicking on the link.
6. Go through the same steps as in “Reviewing the 5250 order entry application” on page 3 to test the
application.
You have launched a reconverted WebFacing application, prompted for a customer and verified the
changes in the customer selection window.
Lesson checkpoint
You learned the following:
v How to test the customized application
Module summary
In this module you learned how to change the user interface for the WebFacing application using Web
Settings in CODE Designer.
You will be guided through the Web Setting capabilities in the LPEX Editor to make the necessary
modifications to the part selection subfile. You will change the second column in the part selection
subfile, which contains the part name, from a simple text output field to a link. When you click on this
new part name link, the correct information your program expects is sent. You might ask what is the
correct information? What is your program expecting? It is expecting a 1 in the subfile options field for
the selected part record. The program will receive the same information after you change the user
interface.
The WebFacing conversion will add logic to the user interface, so that the options field is filled with a 1
and the Enter key event is invoked when the link is pressed. You enhance the user interface and don’t
have to change the application, this sounds pretty impressive doesn’t it.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Locate a DDS source member
v Open a DDS source member with CODE Designer
v Create a hyperlink action for the option field
v Hide the option field
v Hide the option heading for the option field
v Hide the select instruction
v Change the appearance of text
v Close CODE Designer
v Reconvert the DDS source member
v Launch the reconverted WebFacing application
v Prompt for a customer
v Verify the changes in the customer selection window
Assessment
v What is CODE Designer?
v What are Web Settings?
v How do you apply Web Settings to customize the Web browser interface using CODE Designer?
Changing the user interface using Web Settings in the LPEX Editor
To enhance the results of the WebFacing Tool, you will use the feature Web Settings in the LPEX Editor.
LPEX Editor is a source editor available in the workbench. It allows you to change certain aspects of the
user interface related to the WebFacing conversion process. The LPEX Editor stores the Web Setting
information as comment lines in the DDS source. When you convert the application using the IBM
WebFacing Tool, these DDS source comment lines are picked up and applied to the new user interface.
This module teaches you how to change the user interface of your WebFacing application with the LPEX
Editor. In the WebFacing perspective you will learn how to select a DDS source member to work with;
start the LPEX Editor to open this DDS member; work with Web Settings in the LPEX Editor to change
the Web look, and then reconvert the DDS member.
Time required
This module will take approximately 15 minutes.
Skip this section if the product and WebFacing perspective are already open.
1. To start the product and open the WebFacing perspective (optional):
a. Start the product and open the WebFacing perspective, if it is not up and running already.
b. In the WebFacing perspective, make sure that you are in the WebFacing Projects view and not the
Navigator view.
c. Expand your project in the WebFacing Projects view by clicking on the plus sign (+) beside the
WebFacing project icon if not already.
Next you open the LPEX Editor.
Note: This lesson is very similar to the previous lesson; you use a different tool to apply the Web
Settings. When you create a WebFacing application and want to customize that WebFacing
application, you can choose the tool you like more for applying Web Settings.
2. To open the LPEX Editor:
a. Locate the DDS display file source named STLPARTD.
b. Right-click SLTPARTD and click Open with > Remote Systems LPEX Editor on the pop-up menu.
You have located the DDS source member and opened it with the LPEX Editor.
Lesson checkpoint
You learned the following:
v How to open the Remote Systems LPEX Editor
v How to open the WebFacing perspective
Note: You can’t just change the 5250 constant because you might still use this screen in a 5250
environment, you have to use Web Settings to apply this change to the Web user interface only.
5. To change the instruction text:
a. Select the instruction constant (Type choices press Enter) on the Outline view.
You have created a hyperlink action for the option field, hidden the option field, the option heading and
the select instruction, changed the appearance of text, closed the LPEX Editor and reconverted the DDS
source member.
Lesson checkpoint
You learned the following:
v How to apply Web Settings in the LPEX Editor to change the Web user interface of the application
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
ensure that you select the same server on the dialog now. For example, if you had previously selected
WebSphere V6.1 Server, ensure that you select that server now.
3. Go to the browser pane and click the Launch button.
You will see the first screen of your application. Nothing has changed there.
4. Click the Prompt push button, or press command key F4.
Tip: If the customer selection window is still showing the old option selections, most likely the
browser has cached the page and you need to close the browser window, and restart the application.
This will open a new instance of the browser without cached content.
5. Select a customer from the list by clicking on the link.
6. Click the Prompt push button on the Parts field.
The parts selection window appears and the part fields are shown as links. The instruction text has
changed (click on link to select) and the Opt heading and Opt field are gone.
Tip: If the part selection window is still showing the old option selections, most likely the browser
has cached the page and you need to close the browser window, and restart the application. This will
open a new instance of the browser without cached content.
7. Click the hyperlink and notice that the corresponding part number is set in the Part number field on
the Order Entry panel.
8. Exit the application.
Lesson checkpoint
You learned the following:
v How to test the customized application
Module summary
In this module you learned how to change the user interface for the WebFacing application using Web
Settings in the LPEX Editor.
When you tested the changed application, you found that you didn’t like the way the WebFacing Tool
mapped some of the display attributes to colors and text styles available in the browser. You wanted to
change the default WebFacing style rules that determine how certain 5250 parts are displayed in a
browser to give the Web user interface a better look. Now you will make these changes.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Locate a DDS source member
v Open a DDS source member with the LPEX Editor
v Create a hyperlink action for the option field
v Hide the option field
v Hide the option heading for the option field
v Hide the select instruction
v Change the appearance of text
v Close the LPEX Editor
v Reconvert the DDS source member
v Launch the reconverted WebFacing application
v Prompt for a part
v Verify the changes in the part selection window
Assessment
v What is the LPEX Editor?
v What are Web Settings?
v How do you apply Web Settings to customize the Web browser interface using the LPEX Editor?
Learning objectives
v Start the Style Properties dialog
v Change the DDS Field Display Attributes
v Locate the cascading style sheet file
Time required
5. Click the .. push button to the right of the High intensity field.
Tip: Don’t try to change the color in this dialog, the color setting doesn’t work, later in this module
you will see how to change the color.
This changes the font size and appearance for parts that have the high intensity attribute active.
9. Click OK on the Font dialog.
10. On the Properties page, click OK.
Let’s check the new style in your application.
11. To check the new style:
a. Right-click [Link] in the WebFacing Projects view.
b. Click Run As > Run on Server on the pop-up menu.
Note: If you did not select the Set server as the project default (do not ask again) check box on
the Run on Server dialog when you selected the server in “Showing the [Link] page” on page
32, ensure that you select the same server on the dialog now. For example, if you had previously
selected WebSphere V6.1 Server, ensure that you select that server now.
c. Go to the browser pane and click the Order Entry link.
Tip: See the different font and font size of some of the text; these are the highlighted areas of
your 5250 screen.
You will see the first screen of your application.
d. Prompt for the customer.
The customer selection screen has highlighted text and this text should show in font Comic Sans
MS and size 16.
You have started the Style Properties dialog, changed the DDS Field Display Attributes and checked the
new style.
Lesson checkpoint
You learned the following:
v How to start the Style Properties dialog
v How to change the DDS field display attributes
v How to check the changed style
v About style changes
You have located the cascading style sheet file and edited it.
Lesson checkpoint
You learned the following:
v How to locate the cascading style sheet file and edit it
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
You might not have noticed it before, but there is still a command key description at the bottom of
the Customer Selection list window.
You might have guessed it; you will fix this in the next module.
Lesson checkpoint
You learned the following:
v How to test changes
Module summary
In this module you learned how to change the user interface of your WebFacing application by using the
WebFacing style properties dialog and editing the styles directly in the Cascading Style Sheet (.css) file
that WebFacing uses.
In the sample Order Entry application, the Customer Selection list window doesn’t follow the CUA® rules
for command key descriptions. The WebFacing Tool will by default not recognize these command key
descriptions and will not delete them. The Order Entry main screen has a command key enabled that has
no description associated with it. The WebFacing Tool by default doesn’t handle this situation and puts a
default string in the push button label representing this command key. Next you learn how to enable the
WebFacing Tool to deal with these common green-screen environments.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Start the Style Properties dialog
Assessment
v What kinds of style changes can you make to the Web user interface?
v How do you change the Web user interface using style properties and CSS?
This module teaches you how to use the WebFacing conversion properties dialogs to add your own
command key description rule. Also, you might have enabled command keys without describing them in
the user interface because they are only used for specific functions and your end user knows how they
work. For example, command key 3 for ending an application or command key 12 for canceling a task
are generally well known. Your user interface might not list them explicitly at the bottom of the panel. In
these situations, the WebFacing Tool doesn’t have a string to use as a label for the push buttons on the
Web page, and will use default labels, for example CF12 for command key 12. As an alternative, the
WebFacing Tool allows you to specify labels for common command keys so it can label the command key
push buttons correctly.
Learning objectives
v Start the Properties dialog
v Select Command Key Recognition Patterns
v Add a new command key rule
v Reconvert the DDS members
v Test the applied new rule
v Change the text for the F12 command key
v Reconvert the DDS members
v Test the new command key label
Time required
This doesn’t follow the CUA rules normally used in iSeries user interfaces, so the WebFacing conversion
does not recognize this pattern and does not hide it. You have to add this prefix pattern to the WebFacing
Tool conversion rules in the WebFacing Properties dialog.
3. In the left pane of the Properties for wflabxx, under Conversion, select Command Key Recognition
Patterns.
Note: If you did not select the Set server as the project default (do not ask again) check box on
the Run on Server dialog when you selected the server in “Showing the [Link] page” on page
32, ensure that you select the same server on the dialog now. For example, if you had previously
selected WebSphere V6.1 Server, ensure that you select that server now.
c. Go to the browser pane and click the Order Entry link.
You will see the first screen of the sample application.
Note: Notice that the command key text Fkey12=Cancel is gone from the bottom of the window.
e. If the push button still shows, restart the Application server.
Now that you know how to change the command key recognition patterns in the WebFacing Tool, you
can add text to frequently used command keys that don’t have a text description in the DDS source.
Back on the Order Entry panel, you can see that the push button for F12 does not have a description and
is labelled F12. You will learn how to change this in the next lesson.
You have started the Properties dialog, selected Command Key Recognition Patterns, added a new
command key rule, reconverted the DDS members, and tested the applied rule.
Lesson checkpoint
You learned the following:
v About conversion rules
Note: If you did not select the Set server as the project default (do not ask again) check box on
the Run on Server dialog when you selected the server in “Showing the [Link] page” on page
32, ensure that you select the same server on the dialog now. For example, if you had previously
selected WebSphere V6.1 Server, ensure that you select that server now.
You have changed the text for the F12 command key, reconverted the DDS members and tested the
command key label.
Lesson checkpoint
You learned the following:
v How the change the text for a command key in the user interface
v How to reconvert and test the changed application
Module summary
In this module you learned how to use the WebFacing conversion properties dialogs to add your own
command key description rules and labels.
Now that you have a Web user interface where the green screen doesn’t show through as much as after
the first WebFacing conversion you did in “Converting selected source members” on page 27; you want
to add some more refinements to the appearance of your Web pages.
By completing this module, you learned about the following concepts and tasks:
v Start the Properties dialog
v Select Command Key Recognition Patterns
v Add a new command key rule
v Reconvert the DDS members
v Test the applied new rule
v Change the text for the F12 command key
v Reconvert the DDS members
v Test the new command key label
Assessment
v What is the Style Properties dialog?
v How do you change command key recognition patterns?
v How do you add a new command key rule?
v How do you change the text of a command key?
v How do you reconvert and test these changes?
Learning objectives
v Start the Properties dialog
v Change the window style
v Change the subfile style
v Change the command key style
v Test the changed properties
Since a style is used on a project level, all Web pages in your project will contain the changes you apply
to a particular style.
Time required
15. In the Border color field at the bottom of the page click the .. push button to the right of the Border
color field.
The Color Chooser dialog opens.
16. Click blue.
17. Click OK in the Color Chooser dialog.
You have started the Properties dialog and changed the window style.
Lesson checkpoint
You learned the following:
v How to start the Properties dialog and change the window style
Tip: If you are interested in the hex value of certain colors as they are used in the style classes, the
Color Chooser dialog displays the hex values; see the value ″FFFF33″.
5. Click OK in the Color Chooser dialog.
You return to the Properties dialog.
6. Select Subfile record - even row in the Subfile areas list at the top of the page.
Lesson checkpoint
You learned the following:
v How to change the subfile style
2. Change the Foreground color for all three states of the buttons:
v Default
v Rollover
v Button down
Now you have finished customization.
3. Click OK on the Properties dialog.
Lesson checkpoint
You learned the following:
v How to change the command key style
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
ensure that you select the same server on the dialog now. For example, if you had previously selected
WebSphere V6.1 Server, ensure that you select that server now.
3. Run the application.
4. Click Prompt.
The application window shows different colors, and the subfile records are colored. The command
key push buttons change color, depending on their state.
Tip: If the text is still showing the old colors, most likely the browser has cached the page and you
need to close the browser window, and restart the application. This will open a new instance of the
browser without cached content.
Lesson checkpoint
You learned the following:
v How to check the new style
Module summary
You have tested your WebFacing application with updated style properties and now you want to
customize the style further by updating the look and feel for a fictional company.
By completing this module, you learned about the following concepts and tasks:
v Start the Properties dialog
v Change the window style
v Change the subfile style
v Change the command key style
v Test the changed properties
Assessment
v What is the Properties dialog?
v How do you change the window style, subfile style and command key style?
v How do you check the changed style?
This module teaches you how to customize that style, updating the look and feel for a fictional company.
You will change the color of the application and add a company logo as shown below.
Time required
Opening [Link]
First you open the JSP file called PageBuilder as you want to edit this file to add a new company logo in
a follow-on lesson. [Link] is the main JSP for the WebFacing project.
You will now change the style to reflect a fictitious XYZ Company.
Lesson checkpoint
You learned the following:
v About PageBuilder
v How to open a JSP file called PageBuilder
Lesson checkpoint
You learned the following:
v How to import the company logo
5. Click OK.
6. Save [Link] by pressing CTRL-S.
7. Now you must edit [Link].
You will now update another style sheet to make changes to the buttons and text.
You have edited the style sheet to include the company logo and edited [Link] to remove and
resize fields for your logo.
Lesson checkpoint
You learned the following:
v How to edit the style sheet to configure the header to include a company logo
Module summary
You have customized the default style to update the look and feel for a fictional company. Now you need
to move the application into production and you need the WebFacing application to prompt the users for
signon information when it starts.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Locate the existing style
v View the design of the existing style
v Edit the style sheet to include the company logo
Assessment
v What is PageBuilder?
v How do you view an existing style?
v How do you add a company logo to an existing Web page?
Adding authentication
This module teaches you how to secure your application by forcing authentication before the application
is invoked.
Learning objectives
v Start the Properties dialog
v Open the project run-time properties
v Change the signon properties for the order entry application
v Test the signon dialog appears
Time required
4. Make sure the Override project settings for this command check box is selected.
5. Clear the Specify OS/400 signon values check box.
You have started the Properties dialog, opened the project run-time properties and changed the signon
properties for the order entry application.
Lesson checkpoint
You learned the following:
v About authentication
v How to add signon properties to the WebFacing order entry application
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
ensure that you select the same server on the dialog now. For example, if you had previously selected
WebSphere V6.1 Server, ensure that you select that server now.
3. Click the Launch button.
You will see the authentication dialog.
Lesson checkpoint
You learned the following:
v How to test authentication for the WebFacing application
Module summary
You have added authentication to the WebFacing application and now want to enhance the look of the
[Link] page to give the start page of this application a professional appearance. The workbench
contains several tools to design and enhance Web pages. Also with the workbench you have access to
sample pictures, icons, animations, and more. You will use some of these tools and samples and enhance
the page so it becomes more attractive.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Start the Properties dialog
v Open the project run-time properties
v Change the signon properties for the order entry application
v Test the signon dialog appears
Assessment
v What is authentication?
v How do you add authentication to a WebFacing application?
v How do you test that authentication works in the WebFacing application?
Time required
You have opened the application start page ([Link]) in Page Designer.
Lesson checkpoint
You learned the following:
v How to open the application start page in Page Designer
Lesson checkpoint
You learned the following:
v How to change the window title to Order Entry
1. Click the Gallery tab, if the Gallery view isn’t already displayed in the left of the workbench.
Lesson checkpoint
You learned the following:
v How to add a style to your Order Entry Web page
Now you want to use one of the sample pictures included with the product and place this picture on
the page.
Lesson checkpoint
You learned the following:
v How to insert a heading
Note: The sample illustrations change between releaseses so [Link] might not be available in your
environment.
6. Drag a picture onto the Design page below the heading.
The Design page now contains a picture.
Lesson checkpoint
You learned the following:
v How to add a picture to the Order Entry Web page
7. Enter into the Text field, Please click button to start application.
8. Under Behavior, select Slide in the Movement list.
9. Under Behavior, select Right in the Direction list.
10. Under Repetition, select Finite in the Repetition list.
11. Under Repetition, type 1 in the Count field.
Next you save some space by removing some of the line break tags.
14. Position the cursor just after ″Please select link to start application″.
15. Press the Delete key until the SELECT PROGRAM TO START title appears on your page.
Lesson checkpoint
You learned the following:
v How to add moving text to the Order Entry Web page
Lesson checkpoint
You learned the following:
v How to change the text color of the Window title and background of the Order Entry Web page
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
ensure that you select the same server on the dialog now. For example, if you had previously selected
WebSphere V6.1 Server, ensure that you select that server now.
Your new designed [Link] page opens and you can run your application.
Lesson checkpoint
You learned the following:
v How to remove the default text added by the WebFacing Tool
Module summary
In this module you learned how to enhance the look of the [Link] page using several Web tools.
After creating and testing your completed WebFacing application, you can deploy the WebFacing
application, if you have WebSphere Application Server Express installed on your iSeries server. If you
want to deploy your WebFacing application, continue to “Exporting to iSeries WebSphere Application
Server (Optional)” on page 105.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Open the application start page ([Link]) in Page Designer
v Change the window title to Order Entry
v Add a style to the Order Entry Web page
v Insert a heading
v Add a picture to the Order Entry Web page
v Add a marquee to the Order Entry Web page
v Change the color of the window title
v Remove default text added by the WebFacing Tool
Assessment
v What is Page Designer?
v How do you change the window title?
v How do you add a style?
v How do you insert a heading on the page?
Learning objectives
v Use the RSE to move the EAR file from your local drive to the IFS on the iSeries server
v Export the EAR file
v Start an existing HTTP server console
v Install and manage the application
v Run the application on the production server
Time required
Note: As indicated in System requirements section in the Introduction, check with your system
administrator to ensure that your user ID has the necessary authority to create and access IFS folders.
Lesson checkpoint
You learned the following:
v About EAR files
v How to export the EAR file
Tip: The default administrative port number for the HTTP server is 2001.
The Login dialog appears.
2. Type your iSeries user ID in the user ID field.
3. Type your iSeries password in the password field.
4. Click OK.
The browser opens.
5. Click IBM Web Administration for i5/OS from the i5/OS Tasks menu.
The Administration pages for the HTTP and application servers display.
6. Select the Manage tab then the Application Servers tab.
The Manage WebSphere Application Server page displays.
15. Select the virtual host to be associated with the Web module.
16. Select a virtual host of your choice, or leave the default host selected.
17. Click Next.
The application summary page displays.
You have started the existing HTTP server, installed and managed the application.
Lesson checkpoint
You learned the following:
v How to start the existing HTTP server, install and manage the application
Open the Internet Explorer and type [Link] in the Address field.
Tip: This is the HTTP port name, most likely 80, not the application bootstrap port. You can find the port
number of the HTTP server by clicking Server Ports under Server Properties.
Your application [Link] page should open. If it does not, double-check the URL and the port number.
Also try restarting the HTTP server and the application server. Refer to the Administrative Console Web
site if you are having problems starting and running the HTTP server or the WebSphere Application
Server. If you still encounter problems, there are troubleshooting guides, FAQs, and newsgroups on the
Web where you can find an explanation of your situation with more detailed information.
Lesson checkpoint
You learned the following:
v How to test the deployed WebFacing application
Module summary
In this module you learned how to deploy a WebFacing application to a production server.
In Development Studio Client you can use WebFacing Tool extensions to mix a WebFacing application
with a non-WebFacing application.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Map a network drive
v Open the Export wizard
v Export the EAR file
v Start an existing HTTP server console
v Install and manage the application
v Run the application on the production server
This module teaches you how to mix a WebFacing and non-WebFacing application.
Learning objectives
v Add a CL command to call a 5250 application
v Launch the mixed application
v Test the application
Time required
The WebFacing run time needs to know the invocation command for this additional application in order
to send this invocation command to the iSeries server to start your application from the browser. The
page in the WebFacing Web Project wizard will allow you to add the necessary information CL command
and Sign on information.
Tip: If you don’t type anything into the Command Label field, the CL command input will be copied
into this field.
3. Leave the default value INV2 in the Invocation name field.
4. Click the Specify OS/400 signon values radio button and enter the user ID and password that you
have used previously for the Order Entry Application.
5. Click Add on the right side of the page.
Tip: Make sure the text and command you typed into the fields are actually shown in the CL
Command table at the bottom of the page.
To enable production, you must purchase the WebFacing Deployment Tool with HATS technology
(WDHT). Web-enabled applications created using the HATS Toolkit are limited to two user connections
for testing purpose only. WDHT is required for deployment to production of HATS applications.
Note: If you did not select the Set server as the project default (do not ask again) check box on the
Run on Server dialog when you selected the server in “Showing the [Link] page” on page 32,
ensure that you select the same server on the dialog now. For example, if you had previously selected
WebSphere V6.1 Server, ensure that you select that server now.
3. In the browser pane, click the Launch link for the Customer Inquiry Application.
After a few moments the first application page opens in the browser.
5. Type 2 in the command field to open the Work with Inventory window. Press Enter.
You have seen the results of calling a non-WebFacing application on-the-fly and seeing the results in the
browser.
Lesson checkpoint
You learned the following:
v How to call a non-WebFacing application on-the-fly and see the results in the browser.
Module summary
In this module, you learned how to use WebFacing Tool extensions to mix a WebFacing application with
a non-WebFacing application. To learn more about mixing WebFacing applications with non-WebFacing
applications, see the Create a combined WebFacing and HATS application tutorial.
Lessons learned
By completing this module, you learned about the following concepts and tasks:
v Add a CL command to call a 5250 application
v Launch the mixed application
v Play in the application
Summary
This tutorial has taught you how to convert the DDS screens in an existing 5250 order entry application
to a Web browser user interface. While creating a browser user interface, you learned how to use the IBM
WebFacing Tool. You also learned how to customize the output of the conversion process using the IBM
WebFacing Tool, CODE Designer, the LPEX Editor and Page Designer. Next you learned how to run the
WebFacing application in the WebSphere Test Environment that is part of the product. Finally, you
learned how to mix a WebFacing and non-WebFacing application with WDHT.
If you have completed all of the modules, you should now be able to:
v Create a WebFacing Web Project
v Convert one or more DDS and UIM files
v Run the application in the WebSphere Test Environment
v Customize the WebFacing application
v Secure your application by forcing authentication before the application is called
v Make the input page of the application more interesting
v Deploy the WebFacing application to a production server (optional)
v Mix a WebFacing and non-WebFacing application with WDHT
More information
For more information on the product and the IBM WebFacing Tool, see [Link]
awdtools/iseries.
Notices
© Copyright IBM Corporation 1992, 2007. All rights reserved.
U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP
Schedule Contract with IBM Corp.
This information was developed for products and services offered in the U.S.A. IBM may not offer the
products, services, or features discussed in this documentation in other countries. Consult your local IBM
representative for information on the products and services currently available in your area. Any
reference to an IBM product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product, program, or service that
does not infringe any IBM intellectual property right may be used instead. However, it is the user’s
responsibility to evaluate and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter described in this
documentation. The furnishing of this documentation does not give you any license to these patents. You
can send license inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION
PROVIDES THIS PUBLICATION ″AS IS″ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some
states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this
statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically
made to the information herein; these changes will be incorporated in new editions of the publication.
IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this
publication at any time without notice.
Any references in this information to non-IBM Web sites are provided for convenience only and do not in
any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of
the materials for this IBM product and use of those Web sites is at your own risk.
Licensees of this program who wish to have information about it for the purpose of enabling: (i) the
exchange of information between independently created programs and other programs (including this
one) and (ii) the mutual use of the information which has been exchanged, should contact:
Such information may be available, subject to appropriate terms and conditions, including in some cases,
payment of a fee.
The licensed program described in this documentation and all licensed material available for it are
provided by IBM under terms of the IBM Customer Agreement, IBM International Program License
Agreement or any equivalent agreement between us.
Any performance data contained herein was determined in a controlled environment. Therefore, the
results obtained in other operating environments may vary significantly. Some measurements may have
been made on development-level systems and there is no guarantee that these measurements will be the
same on generally available systems. Furthermore, some measurements may have been estimated through
extrapolation. Actual results may vary. Users of this document should verify the applicable data for their
specific environment.
Information concerning non-IBM products was obtained from the suppliers of those products, their
published announcements or other publicly available sources. IBM has not tested those products and
cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM
products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of
those products.
Copyright license
This information contains sample application programs in source language, which illustrates
programming techniques on various operating platforms. You may copy, modify, and distribute these
sample programs in any form without payment to IBM, for the purposes of developing, using, marketing
or distributing application programs conforming to the application programming interface for the
operating platform for which the sample programs are written. These examples have not been thoroughly
tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or
function of these programs.
Each copy or any portion of these sample programs or any derivative work, must include a copyright
notice as follows:
© (your company name) (year). Portions of this code are derived from IBM Corp. Sample Programs. ©
Copyright IBM Corp. 1992, 2007. All rights reserved
The following terms are trademarks or registered trademarks of International Business Machines
Corporation in the United States, other countries, or both.
v IBM
v i5/OS
v iSeries
v Rational
v System i™
v WebSphere
Intel® and Pentium® are trademarks of Intel Corporation in the United States, other countries, or both.
Microsoft, Windows, Windows NT® and the Windows logo are trademarks of Microsoft Corporation in
the United States, other countries, or both.
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other
countries, or both.
UNIX® is a registered trademark of The Open Group in the United States and other countries.
Linux® is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Other company, product or service names may be trademarks or service marks of others.