Neil,

Some would disagree that this works well at all, and prefer -

- normal shell input conventions (not one line)
- running the shell in the same address space
   -  better accounting
   -  can one of your commands use a DD in the job step???
- STDOUT and STDERR output to spool  (although BPXBATCH since 1.7 supports
that)

On Wed, Aug 21, 2013 at 8:34 AM, Neil Haley <[email protected]> wrote:

> Howdy,
>
> I use this which works quite well,
>
> //SHELL   EXEC PGM=BPXBATCH,REGION=8M
> //STDIN   DD DUMMY
> //STDOUT  DD DUMMY
> //STDERR  DD PATH='/u/sdda###/Logs/shell.error',
> //           PATHOPTS=(OWRONLY,OCREAT,OTRUNC),
> //           PATHMODE=SIRWXU
> //*******************************************
> //* Enter shell commands below, only need   *
> //* SH on the first line, separate commands *
> //* with an ';'                             *
> //*******************************************
> //STDPARM DD  *
> SH first command ;
>    second command ;
>    third command ;
>    last command
>
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to