Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

fwrite() failed - EDC5003I Truncation of a record occurred during an I/O operation

 We have issues where RTC editor does not force 80 character limit on a line. When the build tries to write to m/f dataset, it fails with error - EDC5003I Truncation of a record occurred during an I/O operation. We are using RTC 4.7.

Qs: 
1. Is there any editor options we can use to modify COBOL code in RTC which can enforce 80 char limit
2. Even a blank space at position 80+ fails. Is it possible to ignore/truncate blank spaces automatically
3. Any other option to deal with this issue.

Thanks

0 votes



2 answers

Permanent link
The plain RTC itself does not support COBOL. Are you using any other editor to edit the COBOL code? Since you are talking about mainframe, you should consider a tool built for the mainframe. But it appears that even RDz does not "enforce" the limit either.
https://jazz.net/forum/questions/132431/rtc-rdz-editing-cobol-program-set-boundaries

0 votes


Permanent link
Although I agree with Donald's response that a COBOL-specific editor that enforces the limit would be optimal,  there are other options:

1. Turn on Eclipse's line-width marker (Preferences > Text Editors > Show Print Margin) so users know where the limit is.
2. Write an advisor for RTC that checks the length of each line on cbl files when they are delivered, and prevents deliveries of files with lines that are too long.

EDIT: words.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 343

Question asked: Nov 26 '14, 1:32 p.m.

Question was seen: 10,199 times

Last updated: Dec 01 '14, 10:16 a.m.

Confirmation Cancel Confirm