Escaping for national characters in DSName

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

Escaping for national characters in DSName

Post by Bernhard » Mon Jun 18, 2018 2:34 am

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: 1830
Joined: Thu Jul 29, 2004 12:12 pm

Re: Escaping for national characters in DSName

Post by dovetail » Mon Jun 18, 2018 1:08 pm

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

Re: Escaping for national characters in DSName

Post by Bernhard » Fri Jun 22, 2018 4:25 am

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: 1830
Joined: Thu Jul 29, 2004 12:12 pm

Re: Escaping for national characters in DSName

Post by dovetail » Fri Jun 22, 2018 8:39 am

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