How to ignore Permanent I/O error on a Display

85 pts.
Tags:
AS/400 errors
I/O errors
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

Thanks. We'll let you know when a new response is added.

Hi,

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.

CWC

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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
  • Sloopy
    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
    2,195 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

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

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following