(RPG) A tip for ‘dual purposing’ existing 5250 RPG code

Please mark posts as being for RPG or RDMLX (LANSA) developers.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
MarkDuignan
Posts: 346
Joined: Wed Apr 18, 2012 10:33 am

(RPG) A tip for ‘dual purposing’ existing 5250 RPG code

Post by MarkDuignan »

LongRange ships with a program called LRNGACTIVE - the source code is shipped in LRNGSOFT/LRNGSOURCE.

You can call this program from any RPG program.

Pass it a char (1) parameter which will be returned as ‘Y’ or ‘N’.

The returned value can be used by existing 5250 RPG code to decide whether it is directing output to a 5250 device or to a mobile device.
Post Reply