Escaping for national characters in DSName

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

Escaping for national characters in DSName

Post by Bernhard »

We wanted to transfer a DSName containing a $ (or #), but got some strange results. After looking into the manual and finding no hint about that, we finally assumed that they have to be escaped by a \, an then it really worked.

Especially for us z/OS Dinos it would be great if Dovetail would add a little hint about that to the user's manual.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Escaping for national characters in DSName

Post by dovetail »

I think that the problem that you are seeing with using characters like "$" or "#" is that they are getting interpreted by the z/OS Unix shell, since you would typically invoke cozsftp using a shell.

Your suggestion about documenting how to quote/escape things in a shell script is a good idea.
Bernhard
Posts: 13
Joined: Thu Jun 14, 2018 6:32 am

Re: Escaping for national characters in DSName

Post by Bernhard »

We are calling cozsftp via COZBATCH (invoked by a TSO CALL from the load library). But I assume it opens a shell as well and there the substitution is done.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Escaping for national characters in DSName

Post by dovetail »

That is correct - COZBATCH by default runs the default logon shell specified by your userid's OMVS segment. Typically /bin/sh.

Since you are an enterprise support customer, please open a support ticket If you are still having issues with quoting and post your input and job output.
Post Reply