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