Installation for REQUEST DOCUMENT and PARSE XML Statements on z/VSE

This document describes the installation steps for enabling the use of the Natural statements REQUEST DOCUMENT and PARSE XML on z/VSE.

Related Topics:

For information on the functions provided by REQUEST DOCUMENT and PARSE XML, see the following documents:


Prerequisites

The following requirements must be met to execute the REQUEST DOCUMENT and PARSE XML statements:

  • The ICU library must be installed to convert data from one encoding to another (at least internally). For details, see the relevant section in the Unicode and Code Page Support documentation.

  • A TCP/IP stack must be available and enabled for the execution environment.

  • A DNS (Domain Name System) server or DNS services must be available in the execution environment to resolve internet addresses (gethostbyname function).

For Internet Protocol Version 6 (IPv6) support, the following additional prerequisites apply:

  • An activated IPv6 stack must be available on the local host.

  • The local network must support IPv6.

  • An accessible and IPv6-capable DNS server must be available.

  • For IPv6 internet communication, an IPv6 connection from the service provider must be available.

  • If both IPv4 and IPv6 are used, a dual stack must be supported.

  • IPv6 support must be configured with the appropriate keyword subparameters of the Natural profile parameter XML described in the Parameter Reference documentation.

See also General Prerequisites and System Support in the section Overview of the Installation Process.

Installation Procedure

Be sure to read Installation Process and Major Natural Features before you start the installation procedure.

The installation procedure comprises the following:

Step 1: Link the Module NATXML or NATXMLA9 to the Nucleus

The module NATXML is required to execute the statements REQUEST DOCUMENT and PARSE XML. If you want the PARSE XML statement to support IBM architecture level 9, alternatively, you can use the module NATXMLA9. See also PARSE XML Support for Architecture Levels.

  1. Set the System Maintenance Aid (SMA) parameter NATXML to Y (default is N).

  2. The NATXML module is then linked to the environment-independent nucleus by using the following INCLUDE statement:

     INCLUDE NATXML

Or:

For support of IBM architecture level 9:

  1. Set the SMA parameters NATXML and NAT-ARCHLEVEL9 to Y (default is N).

  2. The alternative NATXMLA9 module is then linked to the environment-independent nucleus by using the following INCLUDE statement:

    INCLUDE NATXMLA9

Step 2: Enable the Environment-Dependent Nucleus for LE Execution

The REQUEST DOCUMENT and PARSE XML statements require the IBM Language Environment (LE) for execution. If you want Natural to run in the IBM Language Environment (LE), perform the following steps:

  1. Set the System Maintenance Aid (SMA) parameter NAT-LE to Y (Yes). The default setting is N (No).

  2. Additionally, if you want to modify the LE options in the NATLEOPT source module or if you use non-Natural programs running in 24-bit mode, set the appropriate SMA parameter as described in Build the Natural-Specific IBM Language Environment Options in Installing Natural.

  3. Link the environment-dependent nucleus to support LE.

This applies to all batch and TP monitor system environments except Com-plete.

Step 3: Link the Required Modules to the Nucleus

Link the modules indicated in this section to the nucleus depending on the environment to be used.

Batch and CICS

  1. Add the LE library (usually PRD2.SCEEBASE) to the OBJ-SEARCH definition of the link job to resolve the references to LE functions.

  2. Link the following LE and TCP/IP access modules to the environment-dependent nucleus by using the appropriate INCLUDE statement:

     INCLUDE NAT2LE

    Do not specify the NOAUTO parameter in the ACTION statement for the link step.

  3. If you run z/VSE Version 5 Release 1 (or above) and use a BSI TCP/IP Version 2.5.2 stack (or above), use the following statement:

     INCLUDE NAT2TCP

    If no such z/VSE versions and BSI TCP/IP stack versions are available, use the following statement:

    INCLUDE NAT2TCP4

Com-plete and SMARTS

  1. Link the following LE access module to the environment-dependent nucleus by using the appropriate INCLUDE statement:

     INCLUDE NAT2LE
  2. Copy the NCFTCPvr phase to the Com-plete/SMARTS load library.

  3. For support of the IBM TCP/IP stack, define the CDI (Communication Driver Interface) as described in Standard CDI Definitions in the Com-plete documentation.

  4. Add the POSIX SERVER statement to the Com-plete parameter module SYSPARM.

PARSE XML Support for Architecture Levels

The architecture level (the higher the better) you can use depends on the IBM hardware facility installed at your site.

The following architecture levels can be specified with the PARSE XML statement, International Components for Unicode for Software (ICS) and/or the Natural Optimizer Compiler (NOC):

Level Value Supported By IBM Hardware Facility Required
0 All Specifies that no architecture level is used. This is the default setting for compatibility with all mainframe platforms supported by Natural.
1 to 4 All These values are not evaluated and treated as ARCH=0.
5 to 6 NOC only
  • z800 or z900
    Extended-Translation Facility 2

  • z890 or z990
    HFP Multiply-and-Add/Subtract Facility

7 NOC only
  • z9 to z109
    Extended-Immediate Facility

8 NOC only
  • z10
    General-Instructions-Extension Facility

  • z10
    Execute-Extensions Facility

9 PARSE XML and ICS only
  • zEnterprise 196
    Load/Store-on Condition Facility
    Floating-Point-Extension-Facility
    Distinct-Operands Facility
    High-Word-Facility

10 NOC only
  • zEnterprise EC12 (zEC12)
    Decimal Floating-Point Facility
    Decimal Floating-Point Zoned-Conversion Facility

11 NOC only
  • zEnterprise z13
    Decimal Floating-Point Packed-Conversion Facility

Warnung:
An operation exception error (abend code S0C1) can occur if code generated with an architecture level greater than 0 is executed on a machine where the corresponding hardware facility is not installed.

Installation Verification

After the last step of the installation procedure has been completed, proceed as follows:

  1. Activate the statements in the runtime environment; see Activation/Deactivation in the section Statements for Internet and XML Access in the Programming Guide.

    For information on the profile settings that enable the support of the REQUEST DOCUMENT and/or PARSE XML statement, see the following documents:

    • Profile Settings in the section Statements for Internet and XML Access in the Programming Guide

    • Profile parameter XML in the Parameter Reference documentation

  2. Try the example programs contained in the Natural system library SYSEXV.