PUT command with $$ in it

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
dabills
Posts: 41
Joined: Thu May 19, 2011 9:56 am

PUT command with $$ in it

Post by dabills »

I am using PGM=COZBATCH to send a file to a remote sytem. I am trying to use a target file name of //file.name.$$new

Unfortunately, the $$ part of the name is being filled in with the process ID of the shell that is running. Is there a way to override this so the $$ is not overridden with the $$ variable from the shell?

I tried passing rfile="//file.new.$$new" but it still overrides it. Maybe there is some shell magic you can think of.
dabills
Posts: 41
Joined: Thu May 19, 2011 9:56 am

Re: PUT command with $$ in it

Post by dabills »

I was able to get around the variable substitution by coding the PUT command using this as the target file name:
//file.name.\$$\new

It appears \ can be used to disable the shell variable substitution.
Post Reply