Im trying to copy a file that is part of my virtual tape drive.
I need to do this in batch
I can do this interactively ok with this
STRPCCMD PCCMD('Copy z:folder1\file1 +
n:\folder1\folder2') PAUSE(*NO)
But when I do this in batch with this
OVRDBF FILE(INPUT) TOFILE(*LIBL/CPYVRT1)
FTP RMTSYS('123.45.67.89')
My flat file contains this. I have tried both copy and cp
file (CPYVRT1)
USERID password
copy z:\folder1\file1 n:\folder1\folder2
quit
It fails and does not copy the file.
it sees my user id and accepts that and the password then error
> copy ******************** *************************
Subcommand 'copy' not valid.
Then quits ok.
If I run the same command from a command prompt it works fine but need to use copy not cp.
So is it the syntax that I have wrong.
any help to get this to work
cheers
I need to do this in batch
I can do this interactively ok with this
STRPCCMD PCCMD('Copy z:folder1\file1 +
n:\folder1\folder2') PAUSE(*NO)
But when I do this in batch with this
OVRDBF FILE(INPUT) TOFILE(*LIBL/CPYVRT1)
FTP RMTSYS('123.45.67.89')
My flat file contains this. I have tried both copy and cp
file (CPYVRT1)
USERID password
copy z:\folder1\file1 n:\folder1\folder2
quit
It fails and does not copy the file.
it sees my user id and accepts that and the password then error
> copy ******************** *************************
Subcommand 'copy' not valid.
Then quits ok.
If I run the same command from a command prompt it works fine but need to use copy not cp.
So is it the syntax that I have wrong.
any help to get this to work
cheers
Comment