WinSCP creates folder when mainframe library non-existent
I am using WinSCP to ftp files to a Mainframe server, and observed a problem.
When WinSCP copies to an existing library on mainframe, the copying works fine. But when library does not exist on mainframe already, WinSCP copies files as individual files, not under a library.
Example:
But when
Is there a way this behavior can be fixed?
I am using following options:
When WinSCP copies to an existing library on mainframe, the copying works fine. But when library does not exist on mainframe already, WinSCP copies files as individual files, not under a library.
Example:
USER.A1.A11
exists already and WinSCP has to copy a file (FILE1
), it will copy the file correctly under library USER.A1.A11
.
But when
USER.A2.A22
library does not exist on Mainframe, and WinSCP tries to copy a file (FILE2
), it copies it as an individual file like USER.A2.A22.FILE2
.
Is there a way this behavior can be fixed?
I am using following options:
WinSCP /ini=nul /console /command "open ftp://user:password@ftpserver:21 -passive=on -explicittls" "option confirm off" "call SITE site.." "CD 'USER1.A2.A22'" "put \\location\\* -transfer=ASCII" "close" "exit"