z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Ways to define STDPARM

z/OS UNIX System Services User's Guide
SA23-2279-00

You can define the STDPARM parameter file by using one of the following:
  • The TSO/E ALLOCATE command
    Example: The parameter data to be passed to BPXBATCH resides in the MVS™ sequential data set TURBO.ABC.PARMS.
    ALLOCATE DDNAME(STDPARM) DSN('TURBO.ABC.PARMS') SHR
       
  • A JCL DD statement. To identify a z/OS UNIX file, use the PATH operand and specify PATHOPTS=ORDONLY.
    Example: The parameter data resides in the z/OS UNIX file /u/turbo/abc.parms.
    //STDPARM DD PATH='/u/turbo/abc.parms',PATHOPTS=ORDONLY
    Example: The BPXBATCH parameter data resides in member P1 of the MVS PDSE TURBO.PARM.LIBRARY.
    //STDPARM DD DSN=TURBO.PARM.LIBRARY(P1),DISP=SHR
       
  • An JCL in-stream data set

    The BPXBATCH parameter data immediately follows the STDPARM DD statement. Trailing blanks are truncated for in-stream data sets, but not for other data sets.

    Example: The following invokes the echo shell command.
    //STDPARM  DD *
    SH echo "Hello, world!"
    /*
    Example: Consider the following shell script called myscript.sh. This shell script writes to stdout the first three arguments that are passed to it.
    #!/bin/sh
    #Write arguments 1 through 3 to stdout
    echo $1
    echo $2
    echo $3
    The following is one way to define STDPARM to run the script:
    //STDPARM  DD *
    SH /myscript.sh AAAA BBBB CCCC
    /*
    Here is another way, placing the arguments on separate lines:
    //STDPARM  DD *
    SH /myscript.sh AAAA 
    BBBB 
    CCCC 
    /*
    Result: Both of these STDPARM definitions produce the following output:
    AAAA
    BBBB
    CCCC
      
  • SVC 99 dynamic allocation, if you are running BPXBATCH from a program

For more information about defining STDPARM for BPXBATCH, see the detailed discussion about using BPXBATCH z/OS UNIX System Services Command Reference.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014