165 pts.
 Input Output in RPG
Hi, I would like to know what are the Input Output operations for console in RPG. As in COBOL we use ACCEPT to take input from the user and DISPLAY to show output on the terminal. In RPG using what operations we can achieve this? Regards Shruti.

Software/Hardware used:
ASKED: April 3, 2009  8:37 AM
UPDATED: April 3, 2009  10:18 AM

Answer Wiki:
Hi, The equivalent would be the DSPLY operation code - displays a message and accepts a response. This is rarely these days as it is very limited in capability and using a display file gives much more flexibility. On the System/36 in RPGII there was also another method - I believe you could define a file as KEYBOARD, but this is no longer supported. Regards, Martin Gilbert.
Last Wiki Answer Submitted:  April 3, 2009  9:30 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thanks for answering the question.

 165 pts.