Question:
Would it be possible to have a program that uses both the original 5250 and the new rich display files?
Answer:
Yes, this is definitely possible. You can put the HANDLER keyword within an IF DEFINED directive. Then, you can compile the program for green-screen output as you would normally over the green-screen display file. When compiling the rich user interface copy of the same program over the rich display file, you can specify the OPTIONS(‘DEFINE(…)’) parameter to pick up the HANDLER keyword.
It is also possible with a little more programming to create 2 separately named display files (one for rich ui and one for green screens) with the UsrOpn keyword. Then, your program can OPEN the appropriate display file based on context. With this method, you will only have one program object.
Can you use both 5250 and new rich display files?
-
- Site Admin
- Posts: 252
- Joined: Fri Dec 14, 2007 1:09 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 2 guests