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
SFTP_ZOS_INITIAL_DIR Question
Re: SFTP_ZOS_INITIAL_DIR Question
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
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