Hello together,
I have written a REXX script for invoking the sFTP client under COZBATCH in TSO. This works quite pretty until I try after that to invoke a program which wants a programm controlled access to a dataset (PADS) in the same session.
If the CoZ load library is not program controlled I get a message about a dirty address space as expected:
ICH417I THE ENVIRONMENT IS NOT CONTROLLED. CONDITIONAL ACCESS LIST BYPASSED FOR DATA SET ...
...
ICH420I PROGRAM COZBATCH FROM LIBRARY COZ.V4R5M0.SCOZLOAD CAUSED THE ENVIRONMENT TO BECOME UNCONTROLLED.
If, however, the library is program controlled I encounter the same problem but with another message:
BPXP015I HFS PROGRAM /bin/tty IS NOT MARKED PROGRAM CONTROLLED.
Because this is a unix file delivered with the system (which would have to be updated every time of system installation and maybe upgrade) I want to ask whether anyone has experience marking it program controlled or has an idea how to circumvent this problem?
Thanks in advance
Bernhard
BPXP015I after invoking sFTP under COZBATCH
Re: BPXP015I after invoking sFTP under COZBATCH
Hi Bernhard,
Since you are an Enterprise support customer, please open a ticket with us.
Please attach the following to the ticket -
- your COZBATCH JCL + input script
- your REXX shell script
- your /etc/profile and $HOME/.profile if you have one
- Complete output / job log from the job
Since you are an Enterprise support customer, please open a ticket with us.
Please attach the following to the ticket -
- your COZBATCH JCL + input script
- your REXX shell script
- your /etc/profile and $HOME/.profile if you have one
- Complete output / job log from the job
Re: BPXP015I after invoking sFTP under COZBATCH
Sorry,
I now have created a simple test job, but forgot my customer id. Will you please send it to my mail address?
Thanks,
Bernhard
I now have created a simple test job, but forgot my customer id. Will you please send it to my mail address?
Thanks,
Bernhard
Re: BPXP015I after invoking sFTP under COZBATCH
After some tests I have discovered that /bin/tty is called in our profile, which causes the "dirty" environment. We use it to check whether we are in a shell foreground session in order to set some variables:
Because I'm not the unix guru: is there another way (e.g. any variable, not a program call) to find out?
Or can I suppress the whole profile execution with a
without (other) problems?
Code: Select all
if tty -s
then
export _BPX_SHAREAS=YES
export _BPX_SPAWN_SCRIPT=YES
umask 002
readonly LOGNAME
...
fi
Or can I suppress the whole profile execution with a
Code: Select all
address TSO "CALL 'COZ.V5R6M0.SCOZLOAD(COZBATCH)' '/ /bin/sh' ASIS"
Re: BPXP015I after invoking sFTP under COZBATCH
Sorry,
had been out of office until today, therefore the passwort reset link seems to be expired. Please send again.
BtW: the TSO CALL with /bin/sh works without making the environment dirty!
had been out of office until today, therefore the passwort reset link seems to be expired. Please send again.
BtW: the TSO CALL with /bin/sh works without making the environment dirty!