Can you use both 5250 and new rich display files?

This is the knowledgebase for Profound UI, all resolved support and product questions are located here. Please search this forum before posting any new support and technical questions.
Locked
Profound Logic
Site Admin
Posts: 252
Joined: Fri Dec 14, 2007 1:09 pm
Contact:

Can you use both 5250 and new rich display files?

Post by Profound Logic »

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.
Locked

Who is online

Users browsing this forum: No registered users and 1 guest