Falshing output screen!!

35 pts.
Tags:
RPG
RPGLE
Hi, When i try to call a compiled RPGLE program : *************** Beginning 001.00 /free 002.00 dsply 'hello'; 003.00 *inlr= *on; 004.00 /end-free No errors their but fast output screen appear to disply "hello" then goes . want it to stay until i click enter!! Can any body help in this issue? Thx

Answer Wiki

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

Specify a result field on the DSPLY statement and that’ll fix Your problem! May be You can’t use FREE no longer, I’m not sure …
—————————————————————————————————
Good first project.
Display is intended for a test tool not for a user communication.

1. Create a display file (MYDISPLAY) and compile it
A* display file type DSPF
A R DSP1
A 5 10 ‘Hello’

2. Modify your program and compile it.

F MYDISPLAY CF WORKSTN
001.00 /free
002.00 EXFMT DSP1
003.00 *inlr= *on;
004.00 /end-free

Phil

//////////////////////////////

Example from RPG manual

/free
// Display prompt and wait for response:
dsply prompt ” result;
/end-free

Just replace prompt with ‘Hello’.

Regards,
Wilson

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
  • Satsho
    since you have a "MESSAGE" operand, you can add a field to the "RESPONSE" operand. The system will wait for a response.
    1,245 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