/C1ER10: FSUM9209 cannot execute:

Discussion of the COZBATCH utility for z/OS
Post Reply
sz1cml
Posts: 2
Joined: Thu Jul 02, 2015 1:25 pm
Location: Los Angeles area

/C1ER10: FSUM9209 cannot execute:

Post by sz1cml »

Good Morning!
I am executing a script from an zOS batch job that performs a "GET" of a file from a Windows server. The requested file is retrieved in its entirety, however the last message issued before leaving the SFTP session states:
"/C1ER10: FSUM9209 cannot execute: reason code = 0b1b011f: EDC5111I Permission denied."

In a UNIX session on the zOS machine I can "cd /" from my home directory, execute the "ls -la" command and see the C1ER10 folder. However, when I "cd" to that folder, there are no files listed there. Nowhere in my script nor in any files in my folders is there a reference to the "/C1ER10" character string.

Has anyone out there had this experience? I am using userid/password authentication for access to the Windows server. Pasted below are the displays of the "cd" commands showing the C1ER10 info and my "script" used for the GET process.

Thank you in advance for any insight to this issue.
============================================
CL13:/u/lzssqq$ cd /
CL13:/$ ls -la
total 312
drwxr-xr-x 19 BPXAS IMWEB 8192 Sep 8 06:29 .
drwxr-xr-x 19 BPXAS IMWEB 8192 Sep 8 06:29 ..
dr-xr-xr-x 2 BPXAS IMWEB 8192 Apr 15 2013 ...
drwxrwxr-x 2 BPXAS IMWEB 8192 Sep 8 06:29 C1ER10
drwxrwxr-x 2 BPXAS IMWEB 8192 Sep 8 06:29 C1ER11
drwxr-xr-x 6 BPXAS IMWEB 8192 Apr 15 2013 SYSTEM
==============================================
CL13:/$ cd /C1ER10
CL13:/C1ER10$ ls -la
total 32
drwxrwxr-x 2 BPXAS IMWEB 8192 Sep 8 06:29 .
drwxr-xr-x 19 BPXAS IMWEB 8192 Sep 8 06:29 ..
CL13:/C1ER10$
==============================================
coz_bin="/usr/lpp/coz/bin"
remoteuser="PRCrewPayQA"
server="10.240.205.22"
localfile="//TEST.LZSSQQ.CM.T1COCMVA.PRINFILE"
remotefile="PI_PAY_FOC_ROS-yymm.txt"

export _BPXK_SETIBMOPT_TRANSPORT="NETITCP"
export PASSWD_DSN="//LZSSQQ.PDS.SYSIN(CMVAPSW)"
export SSH_ASKPASS=$coz_bin/read_passwd_dsn.sh
export DISPLAY=none
export SFTP_ZOS_OPTIONS=NOSMF
export SFTP_ZOS_INITIAL_DIR=//

ssh_opts="-oBatchMode=no" # allows ssh to use SSH_ASKPASS program
ssh_opts="$ssh_opts -oConnectTimeout=60"
ssh_opts="$ssh_opts -oServerAliveInterval=60"
ssh_opts="$ssh_opts -oStrictHostKeyChecking=no" # accept initial host ke

# Invoke the Co:Z sftp client with an in-line batch of commands
# that uploads a remote file from a local DD.
# Note that "-oBatchMode=no" must be specified before "-b"
# since ssh opts are first-sticky

$coz_bin/cozsftp $ssh_opts -vb- $remoteuser@$server <<EOB
# zopts recfm=fb,lrecl=80,space=cyl.10.1,mode=binary
lzopts mode=text
# lzopts mode=binary
get $remotefile $localfile
EOB
/*
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: /C1ER10: FSUM9209 cannot execute:

Post by dovetail »

Try adding:

set -x

to the beginning of your shell script input (STDIN) to COZBATCH. This might help you pin down where the funny "/C1ER10" command is being executed from.
Post Reply