AS400 screen:
I have a display program that displays text on a screen. More frequently users receive "Permanent I/O error" because there's an invalid character inbedded in the text field caused most likely from cut-n-paste. In one instance the character is hex 15.
How can ignore this error and continue to display text on the screen?

Answer Wiki

This is caused by an undisplayable character – I think the only wat you can get around this is to replace the undisplayable character. Your device cannot phyically display the character – it’s not a program problem. Even the licensed programs like Query can’t display certain character combinations.

Regards,

Martin Gilbert.

********************
Also, you should be able to trap a session or device error using the MONITOR operation code (if you’re using RPG IV). Try putting a MONITOR block around your EXFMT or WRITE operation for the display file, and then you could add any error handling you wanted. The device errors I usually see are either the message IDs RNQ1251 or RNG1255, so you could add the appropriate one to an ON-ERROR section of the MONIITOR block.

Perhaps you could then attempt to find and remove the non-displayable characters and then redisplay the screen.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 4 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

In the program, replace the invalid characters by testing them against blank:
If character < *Blank
Eval character = *Blank
EndIf
You could, of course, make the character any displayable character you like.
Regards,
Sloopy

If this char cannot be displayed, you may not even be able to display it using STRDFU. Your only other options is to write a program to replace the have value with a valid one or fix the field using SQL. That is what we had to do here. People were cutting and pasting from office documents. If they cut and pasted 3 dots in a row it would convert to the ellipse a 1 char value.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy