SFTP_ZOS_INITIAL_DIR Question

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
mmulconry
Posts: 8
Joined: Mon Oct 01, 2018 2:53 pm

SFTP_ZOS_INITIAL_DIR Question

Post by mmulconry »

I have a customer using an sftp client from a GUI program that does not let them specify //DATA.SET.NAME for a z/OS dataset. If I code SFTP_ZOS_INITIAL_DIR=// in the user's sftp-server.rc file, that puts them in their MVS top-level directory of //USERID. At that point if they issue
get 'DATA.SET.NAME' they get a not found response looking for a dataset //USERID/DATA.SET.NAME.

Is there a way to specify SFTP_ZOS_INITIAL_DIR so the user is placed in the top-level MVS space (//) instead of their user MVS space (//USERID)?

I know I can manually issue cd // to get there but for this particular client program it's not an option...

Thanks,
Mark
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: SFTP_ZOS_INITIAL_DIR Question

Post by dovetail »

If you do:

get 'DATA.SET.NAME'

then that is a relative name under the CWD.
That syntax is IBM FTP for absolute datasets; Co:Z SFTP uses //HLQ.DS.NAME.
The quotes are most likely stripped off by the user's shell program.

If your GUI client doesn't support //HLQ.DS.NAME, you can use the alternate syntax: /-/HLQ.DS.NAME
Post Reply