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.
PUT command with $$ in it
Re: PUT command with $$ in it
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.
//file.name.\$$\new
It appears \ can be used to disable the shell variable substitution.