Falshing output screen!!
35 pts.
0
Q:
Falshing output screen!!
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
ASKED: Jun 30 2009  6:33 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
2005 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
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
Last Answered: Jul 2 2009  7:10 PM GMT by WilsonAlano   2005 pts.
Latest Contributors: Philpl1jb   24610 pts., Jgsnsbt   30 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Satsho   1235 pts.  |   Jun 30 2009  5:37PM GMT

since you have a “MESSAGE” operand, you can add a field to the “RESPONSE” operand. The system will wait for a response.

 
0