-
Notifications
You must be signed in to change notification settings - Fork 86
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
Uploading file to dataset with RECFM=FBA shifts lines one char to the right #537
Comments
Could you please upload your file here so that I can download it and recreate the issue in house? |
Long story short: Either:
Additional explanation and links This does not seem like any kind of issue - neither Zowe-CLI nor z/OSMF. Functionality matches what is documented. |
OK so as my understanding, you will close use this issue since it works as design. Then I will not spend extra effort on it. |
Hey @leofang-zOSMF I don't believe we have a resolution yet. The problem seems to be that if you download a FBA member using z/OSMF and then upload the member the control character is added. This doesn't seem like desired behavior. I'm hoping we can get the exact scenario from the person who initially posted the issue on slack. |
I was able to reproduce the problem with a dataset with the following attributes:
I had a line in the dataset:
If I download (using the
Dataset member now looks like this:
Notice the missing @tjohnsonBCM or @zFernand0, correct me if I'm wrong, but we have confirmed this through postman (eliminating anything zowe cli might be doing). |
Good morning. I am the person that originally posted the concern on slack. @tucker01 is correct. The concern is not that the first character is “reserved”. The concern is that every time a use the z/OSMF API (via Zowe CLI) to upload a file into a FBA dataset an extra character is added and everything is “shifted” one column to the right, truncating records in my case. |
@leofang-zOSMF, were you able to reproduce the problem? |
@tucker01, as uzust01 commented 13 days ago, it seems that FBA type has some special rules. Could you please have a try with Windows FTP to upload a file into a FBA dataset to see the results? |
@tucker01 @leofang-zOSMF @jshewbert @tjohnsonBCM When I copy from FBA to FB data set in ISPF it also adds an empty character to each record. |
@uzust01 I do not have those same results. If I use SFTP to download a file from a FBA data set and then upload the same file back into the same FBA data set, it DOES NOT add a character. I have tried SFTP from FB to FBA and from FBA to FB data sets. It does not add characters in either scenario. BTW, we are using Co:Z for our OpenSSH implementation on z/OS. |
From my read of this, one should be able to 'round trip' an FBA file (i.e. download and then upload it). That seems a very reasonable requirement. |
Hi everyone, could one of you please open an RFA to z/OSMF with below link: Due to the special attribute of ANSI format,the current REST API adds one extra charactor. This is not a defect, but I agree with this should be a reasonable requirement. Maybe we could use a new header statement to control adding that extra charactor or not. Let me know the RFE number after you submit. Thanks a lot. |
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. |
New link to issue: https://ibm-z-hardware-and-operating-systems.ideas.ibm.com/ideas/ZOS-I-2696 |
If
RECFM=FBA
andLRECL=80
for the dataset and there are any lines in the file that are 80 characters long, the last character gets truncated on upload, resulting in the following error from the z/OSMF API:The text was updated successfully, but these errors were encountered: