You are correct that the iSeries won't accept that as a file name. Fortunately, FTP gives us a way to handle this sort of problem. The easiest way to do this is on the FTP command itself. If you leave a space after the file name, that name following the blank space will be the name that it will transfer the file to your target machine. In this example, you can leave your iSeries file name as is, but change the name as part of the FTP transfer.
put mylib/myfile +1
If you're having trouble with an FTP command, just type in HELP at the ftp command prompt.
- I have to send (via FTP) files to a mainframe (MVS) all the time and I have to enclose their file name in triple quotes.
put mylib/myfile '''upload(+1)'''
I think the triple quotes may be the key the person asking the question was looking for.& ; Mike Shumaker
MORE INFORMATION ON THIS TOPIC
The Best Web Links: tips, tutorials and more.
Ask your systems management questions--or help out your peers by answering them--in our live discussion forums.