General discussion of the Co:Z Toolkit
-
sctebnt
- Posts: 30
- Joined: Mon Nov 02, 2009 10:47 pm
Post
by sctebnt »
When I run the tso command ren from a uss command line I am successful at renaming a cataloged (both single and multi volume) dataset.
Code: Select all
tso ren "'@17171.T.SASOFF.WRAP.T001.SASC.SASLOG'" "'@17171.T.SASOFF.WRAP.T001.SASC.SASLOG.B'"
When I run the rename command from within rexx at a USS command line I am also successful.
Code: Select all
/* REXX */
ADDRESS 'TSO' "ren '@17171.T.SASOFF.WRAP.T001.SASC.SASLOG.B' '@17171.T.SASOFF.WRAP.T001.SASC.SASLOG.C'"
However when I try either of the above commands from within CozL I get the following error.
Code: Select all
BPXW9044I spawn for bpxwrtso failed
Is there a file or option I could set differently to allow me to run the above commands?
-
dovetail
- Site Admin
- Posts: 1461
- Joined: Thu Jul 29, 2004 12:12 pm
Post
by dovetail »
I believe that the REXX script fails to spawn bpxwrtso because it is APF authorized and it is required to run in another address space.
When you run a command from a target system, directed back to Co:Z Launcher using "cozclient", it will run the command with _BPX_SHAREAS=MUST.
To verify this, try doing this from an interactive shell before running the REXX script:
To correct this, add this line to your REXX script before the "address tso":
Code: Select all
call environment '_BPX_SHAREAS','YES'
-
sctebnt
- Posts: 30
- Joined: Mon Nov 02, 2009 10:47 pm
Post
by sctebnt »
That was it, the addition of
Code: Select all
call environment '_BPX_SHAREAS','YES'
to the rexx script allowed the tso rename command to execute as expected.
Thanks!