How to restrict “Enter key’ on the AS/400 display file.

55 pts.
Tags:
AS/400
AS/400 administration
AS/400 Display File
AS/400 Permissions
Is there any way to restrict the enter key on the display file like other function key. Ex If you did't configure F1 key the Display file If will not allow you to Access that key while doing the Exfmt.

Answer Wiki

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

Can you be more specific on why you would need the enter key restricted ?

EXFMT = WRITE followed by a READ

So if you do just a WRITE – you are basically displaying the record format without accepting any input.

If the user presses any key, I suppose you could retrieve the status (Exception/Error Codes) from the INFDS to determine how you want to proceed next.

I have not done this before, so not sure if this will work or not.

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
  • Splat
    Another option would be to use the attention indicator byte (pos. 369 - 369 (character) in the workstation INFDS) to determine the function key pressed. Enter is defined as x'F1' - look for that and disallow any processing. This would let you keep other function keys on the screen active. You can even check for Auto-Enter, x'3F' I like the attention indicator byte - I haven't bothered attaching an indicator to a function key in ages. I just compare the field defined on the INFDS to pre-defined constants. You can find the definitions of the returned values here.
    7,455 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