I have the following process:
DOZIP RUN TASK PNODE (PGM=Windows)
SYSOPTS="cmd(7z) args(a ~"&ZipFile~" ~"&FilePath&File~")"
CALLCOPY SUBMIT FILE="S:\ConnectDirect\Process\CopyProcess.cdp"
When I run this process with a file path, either through Requester or FileAgent, it works fine with file paths that do not contain spaces. However, if the file path has a space, the zip file is created, but the CALLCOPY step that does the SUBMIT throws the following:
LAPP013I - An invalid keyword value was found
I tried putting quotes (both single and double) around the path with spaces when submitting via Requester, but that doesn't work. What am I doing wrong here in my script? While I could put everything in one big process, there is some reuse that I would like to do across scripts so getting the SUBMIT to work correctly with spaces would be extremely helpful.
Also, my CopyProcess also uses SUBMIT to call another process. If I run the scripts individually, each one successfully does the previous tasking until the SUBMIT, at which point the same error is thrown. And this only happens for filepaths with spaces, so I'm pretty sure the SUBMIT is the problem child.