BPXP015I after invoking sFTP under COZBATCH

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Bernhard
Posts: 13
Joined: Thu Jun 14, 2018 6:32 am

BPXP015I after invoking sFTP under COZBATCH

Post by Bernhard »

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
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: BPXP015I after invoking sFTP under COZBATCH

Post by dovetail »

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
Bernhard
Posts: 13
Joined: Thu Jun 14, 2018 6:32 am

Re: BPXP015I after invoking sFTP under COZBATCH

Post by Bernhard »

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
Bernhard
Posts: 13
Joined: Thu Jun 14, 2018 6:32 am

Re: BPXP015I after invoking sFTP under COZBATCH

Post by Bernhard »

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:

Code: Select all

if tty -s                      
then                           
  export _BPX_SHAREAS=YES      
  export _BPX_SPAWN_SCRIPT=YES 

  umask 002                    
                               
  readonly LOGNAME
  ...
fi
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

Code: Select all

address TSO "CALL 'COZ.V5R6M0.SCOZLOAD(COZBATCH)' '/ /bin/sh' ASIS"
without (other) problems?
Bernhard
Posts: 13
Joined: Thu Jun 14, 2018 6:32 am

Re: BPXP015I after invoking sFTP under COZBATCH

Post by Bernhard »

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!
Post Reply