Skip to content
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

Invalid record for dataset because EOL is \r #577

Closed
John-A-Davies opened this issue Jan 22, 2021 · 2 comments
Closed

Invalid record for dataset because EOL is \r #577

John-A-Davies opened this issue Jan 22, 2021 · 2 comments
Assignees
Labels
bug Something isn't working editor enhancement New feature or request question Further information is requested

Comments

@John-A-Davies
Copy link

In the file editor, I got "Invalid record for dataset, recordLength=130" but max for dataset is 80 (is this because \r is not counted as newline, so the whole file appears as a single line?)

We'd have to try out entering file data where the EOL has various values. A user could paste a file from the clipboard, and that might come from a system where the EOL is different from the EOL the ZLUX editor is expecting.

@John-A-Davies John-A-Davies added bug Something isn't working editor enhancement New feature or request question Further information is requested labels Jan 22, 2021
@1000TurquoisePogs
Copy link
Member

How did that dataset appear in ISPF?
One thing we can't currently handle is undefined-length datasets, which should be treated as one long line, but just fails.
In this case however, it sounds like there's a bug in ZSS's fread?
Because, what ZSS will do is figure out the lrecl, and then read that much at a time, and send an array where each entry is a record. Could be the translation of the array of records into the form of a text buffer in monaco resulted in 2 records being joined into 1 line, thus causing an error when trying to write back.

@DivergentEuropeans DivergentEuropeans self-assigned this Feb 16, 2021
@DivergentEuropeans
Copy link
Member

I was not able to replicate this issue. Many bugs came up and many of them got solved, but this specifically I could not replicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants