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.
USER.A1.A11exists already and WinSCP has to copy a file (
FILE1), it will copy the file correctly under library
USER.A2.A22library does not exist on Mainframe, and WinSCP tries to copy a file (
FILE2), it copies it as an individual file like
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"