// PARM=(’POSIX(ON) ALL31(ON)’,
// ’ENVAR("LIBPATH=/usr/lib")/’)
//STDENV DD PATH=’/etc/nslapm2.env’,PATHOPTS=(ORDONLY)
In
the /etc/nslapm2.env file: LIBPATH=/usr/lib
Following is a copy of the sample procedure:
//NSLAPM2 PROC
//*
//* z/OS Communications Server IP
//* SMP/E distribution name: EZAPAGSB
//*
//* 5650-ZOS Copyright IBM Corp. 2006, 2013
//* Licensed Materials - Property of IBM
//*
//NSLAPM2 EXEC PGM=NSLAPM2,REGION=0K,TIME=NOLIMIT,
// PARM='ENVAR("_CEE_ENVFILE_S=DD:STDENV")/'
//*
//* Example of passing parameters to the program (parameters must
//* extend to column 71 and be continued in column 16):
//* PARM='ENVAR("_CEE_ENVFILE_S=DD:STDENV")/-c public -P 1234 -p TCP
//* IP'
//*
//* Provide environment variables to run with the desired stack. As
//* an example, the data set or file specified by STDENV could
//* contain:
//*
//* RESOLVER_CONFIG=//'SYS1.TCPPARMS(TCPDATA)'
//* LIBPATH=/usr/lib
//*
//* If you want to include comments in the data set or
//* z/OS UNIX file, specify the _CEE_ENVFILE_COMMENT
//* environment variable as the first environment variable
//* in the data set or file. The value specified for
//* the _CEE_ENVFILE_COMMENT variable is the comment character.
//* For example, if you want to use the pound sign, #, as
//* the comment character, specify this as the first
//* statement:
//* _CEE_ENVFILE_COMMENT=#
//*
//* For information on the above environment variable, refer to the
//* IP Configuration Guide. Other environment variables can also be
//* specified via STDENV.
//*
//STDENV DD DUMMY
//* Sample MVS data set containing environment variables:
//*STDENV DD DSN=TCPIP.NSLAPM2.ENV(NSLAPM2),DISP=SHR
//* Sample HFS file containing environment variables:
//*STDENV DD PATH='/etc/nslapm2.env',PATHOPTS=(ORDONLY)
//*
//* Output written to stdout and stderr goes to the data set or
//* file specified with SYSPRINT or SYSOUT, respectively. But
//* normally, NSLAPM2 doesn't write output to stdout or stderr.
//* Instead, output is written to syslogd. When the -o parameter
//* is specified, however, output is written to stdout instead of
//* syslogd.
//*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*
//CEEDUMP DD SYSOUT=*,DCB=(RECFM=FB,LRECL=132,BLKSIZE=132)