-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving file gets FTP error and deletes file on mainframe side #1707
Comments
Thank you for creating a bug report. If you haven't already, please ensure you have provided steps to reproduce it and as much context as possible. |
Hi @MikeKoester , I tried to recreate the problem but failed. My procedure is as following:
|
this is the data set layout Record format . . . . FB I have a member in the data set that is 2,680 lines I even removed the sequence numbers. I am attached to the system in VSC through ZFTP. I bring the member into VSC, edit it and then save it. That is when I get the following File transfer failed. File contains records that are longer than the LRECL of the new file. Transfer aborted due to file error. and now when I go back to the mainframe the member is no longer in the data set. |
Hi @MikeKoester , thank you for your details description. I recreate it today. Like the document said (https://www.ibm.com/docs/en/zos/2.3.0?topic=4rc-451-file-transfer-failed-file-contains-records-that-are-longer-than-lrecl-new-file), when I change my ftp options to NOTRUNcate and NOWRAPrecord, and the contents longer than LRECL, the transfer failed with this information. And the member become empty. So you can check your reccords'length to confirm the length is not longer the setting. And if you accept the truncated, set the ftp option to TRUNCATE. We consider add some warning messages in zowe ftp extension to give user a note before their execution. Thank you very much! |
I believe this was fixed in #1746 |
I pull a data set member from mainframe and edit it on VSC. Now when I try to save it I get the following:
File transfer failed. File contains records that are longer than the LRECL of the new file. Transfer aborted due to file error.
And when I go to the data set on the mainframe that member has now been deleted and is no longer in the data set.
I am connected through your zftp extension
The text was updated successfully, but these errors were encountered: