Issue-Transfer file to MVS systems.

Advertisement

Selva
Guest

Issue-Transfer file to MVS systems.

We are transfering file to MVS systems with following Script.
session.ListDirectory("/+recfm=vb,lrecl=3504,SPACE=cyl.200.100,blksize=0,replace/")
session.PutFiles("C:\WinSCP Projects\BXVD.DAIF0.NCEF.FTPLTRS.F01", "//BXVD.DAIF0.NCEF.FTPLTRS.F01(+1)", False, transferOptions)
In INI file:
[Configuration\Interface]
ConfirmResume=0
SessionReopenAuto=0
[Configuration\Interface\CopyParam]
ResumeSupport=2

Log:
. 2012-08-03 14:55:56.647 Using SFTP protocol.
. 2012-08-03 14:55:56.647 Doing startup conversation with host.
> 2012-08-03 14:55:56.647 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-08-03 14:55:59.929 Type: SSH_FXP_VERSION, Size: 69, Number: -1
. 2012-08-03 14:55:59.929 SFTP version 3 negotiated.
. 2012-08-03 14:55:59.929 Unknown server extension posix-rename@openssh.com="1"
. 2012-08-03 14:55:59.929 Unknown server extension coz-zopts@dovetail.com="0"
. 2012-08-03 14:55:59.929 We believe the server has signed timestamps bug
. 2012-08-03 14:55:59.929 We will use UTF-8 strings for status messages only
. 2012-08-03 14:55:59.929 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2012-08-03 14:55:59.929 Getting current directory name.
. 2012-08-03 14:55:59.929 Getting real path for '.'
> 2012-08-03 14:55:59.929 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2012-08-03 14:56:00.257 Type: SSH_FXP_NAME, Size: 43, Number: 16
. 2012-08-03 14:56:00.257 Real path is '/u/bxvsdftp'
. 2012-08-03 14:56:00.257 Startup conversation with host finished.
< 2012-08-03 14:56:00.257 Script: Active session: [1] BXVSDFTP@ftpsb.jpmchase.net
> 2012-08-03 14:56:00.851 Script: ls -- "/+recfm=vb,lrecl=3504,SPACE=cyl.200.100,blksize=0,replace/"
. 2012-08-03 14:56:00.851 Listing directory "/+recfm=vb,lrecl=3504,SPACE=cyl.200.100,blksize=0,replace".
> 2012-08-03 14:56:00.851 Type: SSH_FXP_OPENDIR, Size: 66, Number: 267
< 2012-08-03 14:56:01.132 Type: SSH_FXP_HANDLE, Size: 13, Number: 267
> 2012-08-03 14:56:01.132 Type: SSH_FXP_READDIR, Size: 13, Number: 524
< 2012-08-03 14:56:01.476 Type: SSH_FXP_NAME, Size: 201, Number: 524
> 2012-08-03 14:56:01.476 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2012-08-03 14:56:01.757 Type: SSH_FXP_STATUS, Size: 28, Number: 780
< 2012-08-03 14:56:01.757 Status code: 1
> 2012-08-03 14:56:01.757 Type: SSH_FXP_CLOSE, Size: 13, Number: 1028
< 2012-08-03 14:56:01.757 Script: -r--r--r-- 0 0 Dec 30 0:00:00 1899 recfm=vb
< 2012-08-03 14:56:01.757 Script: -r--r--r-- 4 0 Dec 30 0:00:00 1899 lrecl=3504
< 2012-08-03 14:56:01.757 Script: -r--r--r-- 0 0 Dec 30 0:00:00 1899 SPACE=cyl.200.100
< 2012-08-03 14:56:01.757 Script: -r--r--r-- 0 0 Dec 30 0:00:00 1899 blksize=0
< 2012-08-03 14:56:01.757 Script: -r--r--r-- 0 0 Dec 30 0:00:00 1899 replace
> 2012-08-03 14:56:01.882 Script: put -nopermissions -preservetime -transfer="automatic" -- "C:\WinSCP Projects\BXVD.DAIF0.NCEF.FTPLTRS.F01" "//BXVD.DAIF0.NCEF.FTPLTRS.F01(+1)"
. 2012-08-03 14:56:01.882 Copying 1 files/directories to remote directory "//"
. 2012-08-03 14:56:01.882 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: BXVD.DAIF0.NCEF.FTPLTRS.F01(+1)
. 2012-08-03 14:56:01.882 TM: M; ClAr: No; CPS: 0; InclM:
. 2012-08-03 14:56:01.882 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2012-08-03 14:56:01.882 File: "C:\WinSCP Projects\WindowsApplication1\Data file\BXVD.DAIF0.NCEF.FTPLTRS.F01"
. 2012-08-03 14:56:01.882 Copying "C:\WinSCP Projects\WindowsApplication1\Data file\BXVD.DAIF0.NCEF.FTPLTRS.F01" to remote directory started.
. 2012-08-03 14:56:01.882 Binary transfer mode selected.
. 2012-08-03 14:56:01.882 Checking existence of file.
> 2012-08-03 14:56:01.882 Type: SSH_FXP_LSTAT, Size: 42, Number: 1287
< 2012-08-03 14:56:02.085 Type: SSH_FXP_STATUS, Size: 24, Number: 1028
. 2012-08-03 14:56:02.085 Discarding reserved response
< 2012-08-03 14:56:02.382 Type: SSH_FXP_ATTRS, Size: 13, Number: 1287
. 2012-08-03 14:56:02.382 Checking existence of partially transfered file.
> 2012-08-03 14:56:02.382 Type: SSH_FXP_LSTAT, Size: 51, Number: 1543
< 2012-08-03 14:56:02.695 Type: SSH_FXP_STATUS, Size: 29, Number: 1543
< 2012-08-03 14:56:02.695 Status code: 2
. 2012-08-03 14:56:02.695 Opening remote file.
> 2012-08-03 14:56:02.710 Type: SSH_FXP_OPEN, Size: 67, Number: 1795
< 2012-08-03 14:56:03.023 Type: SSH_FXP_STATUS, Size: 24, Number: 1795
< 2012-08-03 14:56:03.023 Status code: 4, Message: 1795, Server: Failure, Language:
> 2012-08-03 14:56:03.023 Type: SSH_FXP_LSTAT, Size: 51, Number: 2055
< 2012-08-03 14:56:03.320 Type: SSH_FXP_STATUS, Size: 29, Number: 2055
< 2012-08-03 14:56:03.320 Status code: 2, Message: 2055, Server: No such file, Language:
* 2012-08-03 14:56:03.320 (ETerminal) General failure (server should provide error description).
* 2012-08-03 14:56:03.320 Error code: 4
* 2012-08-03 14:56:03.320 Error message from server: Failure
* 2012-08-03 14:56:03.320 Request code: 3
. 2012-08-03 14:56:03.320 Asking user:
. 2012-08-03 14:56:03.320 Cannot create remote file '//BXVD.DAIF0.NCEF.FTPLTRS.F01(+1).filepart'. ("General failure (server should provide error description).
. 2012-08-03 14:56:03.320 Error code: 4
. 2012-08-03 14:56:03.320 Error message from server: Failure
. 2012-08-03 14:56:03.320 Request code: 3")
* 2012-08-03 14:56:03.335 (EScpSkipFile) Cannot create remote file '//BXVD.DAIF0.NCEF.FTPLTRS.F01(+1).filepart'.
* 2012-08-03 14:56:03.335 General failure (server should provide error description).
* 2012-08-03 14:56:03.335 Error code: 4
* 2012-08-03 14:56:03.335 Error message from server: Failure
* 2012-08-03 14:56:03.335 Request code: 3
. 2012-08-03 14:56:03.335 Script: Failed
> 2012-08-03 14:56:03.960 Script: exit
. 2012-08-03 14:56:03.960 Closing connection.
. 2012-08-03 14:56:03.960 Sending special code: 12
. 2012-08-03 14:56:03.960 Sent EOF message


Why we are getting this error? We followed whatever suggested to resolve this issue like disable resume and autoreconnect. But, still we are getting the same error.
Any help highly appreciated.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Issue-Transfer file to MVS systems.

If the root cause if that you cannot create the .filepart file on the server, you indeed have to disable resume support.
It cannot be done directly, until this gets implemented:
https://winscp.net/tracker/834

You can configure it manually in an INI file, as you have done.
In that case, make sure you set
Session.DefaultConfiguration = false;
And possibly:
Session.IniFilePath = ...

Reply with quote

Advertisement

You can post new topics in this forum