On Tue, May 28, 2019 at 1:55 PM Billy Ashton <[email protected]> wrote:

> Hi John, yes (sorry), I should have mentioned this is in a shell script. A
> couple more questions, if you don't mind:
> 1. Can I force the RC to become zero if the delete fails (there is an
> occasion where the process runs to create the file new the first time in
> the month)?
>

Why care about the RC from the "tso" command? It only sets the $? shell
variable temporarily. Unless you are using "set -e" to abort the script on
an error. In that case, do something like:

set +e # turn off abort on error
tso "del 'some.dsn'" #might set $? to 8 if it doesn't exist
: # The colon command does nothing (IEFBR14) but sets $? to 0
set -e # turn on abort on error



> 2. Can I specify SMS parameters  (data class, storage class) on that
> allocate when I run in batch JCL mode?
>

I don't think that there is any difference in what you can do via BPXBATCH
versus an interactive UNIX shell, other than interacting with the user of
course {grin}.

You can include anything on the ALLOCATE that you can in TSO. Oh, the "tso"
command is like any other UNIX command. It usually runs in a separate
address space. So there is no need to do a TSO FREE command after the
ALLOCATE because that address space terminate and the DSN is automatically
freed. (OK, the BPXAS address space doesn't really terminate, but it goes
through the equivalent of JOB termination in an initiator because BPXAS is
an initiator (IEFIIC) with a special PARM=.



>
> Thanks!
> B
>

-- 
This is clearly another case of too many mad scientists, and not enough
hunchbacks.


Maranatha! <><
John McKown

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

Reply via email to