IBM WAVV 2004 manual Redirect a Vsam requests to a Html, Redirector Server Handler

Page 10

Redirect a VSAM requests to a

HTML page

STEP1.8: Redirector Server -> Handler

To be able to work with VSAM data on another platform (ASCII), the most important component is the Handler.

The handler is responsible for data manipulation and conversion. Therefore it must know the structure (mapping) of the VSAM record.

The handler used in the workshop is the HtmlHandler.class stored in directory: <redir>\com\ibm\vse\htmlhandler

The handler needs a map to split the record into fields. This map does not need to be defined on the VSE system, but you can reuse a already defined map.

A map for a VSAM cluster can be defined with the Maptool, VSE Navigator or IDCAMS RECMAP utility.

We work with the VSAM Cluster FLIGHT.ORDERING.ORDERS The ORDERS_MAP is already defined.

In the used HTML handler <redir>com\ibm\vse\htmlhandler\HtmlHandler.java the mapping is hard coded.

The Record Layout of the ORDERS Cluster is defined as follows:

Offset Length Type Key Field Name Description

----------------------------------------------------------

0

20

STRING

no

FIRST_NAME

First Name

20

20

STRING

no

LAST_NAME

Last Name

40

4

UNSIGNED

no

FLIGHT_NUMBER

Flight Number

44

4

UNSIGNED

no

SEATS

Seats

48

1

BINARY

no

NON_SMOKE

Smoker 0=no

The Record length is 49 Bytes

The Record Layout is reflected in the Map ORDERS_MAP

Image 10
Contents VSE Connectors Workshop VSE Connectors Workshop VSE/ESA 2.6/2.7 Vsam Redirector Redirect Vsam requests to a Html On Windows Overview TCP/IPSteps for installation of Vsam Redirector server on Windows Navigate to VSE Redirector Server homeVerification if Java environment installed Steps for installation on a WorkstationInstall JDK if not on the system Download VSE Redirector server Code Download latest Code via HtmlInstall VSE Redirector Server Java installStart VSE Redirector server Verify installation Vsam Redirector ServerVerify Redirector server Documentation For Windows Start Programs Vsam Redirector Online HelpRedirect a Vsam requests to a Html Redirector Server HandlerVSE Settings to redirect a Vsam cluster Configuration for Redirector Client on VSE\ESAAccess the Vsam file with Ditto Redirect a Vsam file To Html Change Handler to read Vsam record as stringSummary Redirect Vsam requests To a DB2 database on Windows GoalRedirect a Vsam file to DB2 Field name Type Offset LengthCLASSPATH% Ksds FFSTORES.REPRO.CLUSTER FFSTORES.REPRO.CLUSTERFFSTORES.DEMO.CLUSTER FinishedAdditional Information