Configuring the IWNSRV job

Edit the IWNSRV job and copy it to the PROCLIB system library with the correct directory paths to start and stop IBM Copy Services Manager.

About this task

After you run the IWNRACF and IWNINSTL jobs, you configure the IWNSRV job. To start Copy Services Manager through the console, issue the Start IWNSRV command. To stop Copy Services Manager, issue the Stop IWNSRV command.

Procedure

  1. Edit the path_prefix variable in the following directory path, with the correct information for your environment:
    //*------------------------------------------------------------------
    //  SET INSTDIR='path_prefix/opt/IBM/CSM/wlp'
    //  SET USERDIR='path_prefix/opt/IBM/CSM/wlp/usr'
    //*------------------------------------------------------------------
    where:
    INSTDIR
    The directory path to the WebSphere Application Server for z/OS Liberty Profile server installation. This path is used to find the product code.
    USERDIR
    The directory path to the WebSphere Application Server for z/OS Liberty Profile server user area. This path is used to store shared-and server-specific configuration information.
  2. If you want the job to output log information to z/OS UNIX System Services, uncomment and edit the STDENV variable.
    //* Start the server
    //*-------------------------------------------------------------
    //STEP1   EXEC PGM=BPXBATSL,REGION=0M,TIME=NOLIMIT,
    //  PARM='PGM &INSTDIR./lib/native/zos/s390x/bbgzsrv &PARMS'
    //WLPUDIR  DD PATH='&USERDIR.'
    //STDOUT   DD SYSOUT=*
    //STDERR   DD SYSOUT=*
    //*STDENV   DD PATH='/etc/system.env',PATHOPTS=(ORDONLY)
    //*STDOUT   DD PATH='&ROOT/std.out',
    //*            PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
    //*            PATHMODE=SIRWXU
    //*STDERR   DD PATH='&ROOT/std.err',
    //*            PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
    //*            PATHMODE=SIRWXU
    //*
    where:
    WLPUDIR
    The DD PATH that points to the WebSphere Application Server for z/OS Liberty Profile server USERDIR directory. If the DD PATH is not allocated, the USERDIR directory location defaults to the wlp/usr directory in the installation tree view.
    STDOUT
    The destination for the STDOUT variable (DD SYSOUT - System.out).
    STDERR
    The destination for the STDERR variable (DD SYSOUT - System.err).
    STDENV
    In the initial UNIX environment, this path is read by the system. The installation default and specific server environment files are merged into this environment before the Java Virtual Machine is started.