I use WINPRINT-GET-PRINTER-MEDIA to search for the paper-trays. For how to do that, I used the source-lines in PRNDEMOX.cbl(version 9.1.1).
Here are the result out of 2 different printers.
HP CM4730; the values to WS-HB are 15, 257, 258, 259, 260, 261, 262, 1257,1258,1269,1270,1002,1272. This printer has 4 tray's.
HP2050; the values to WS-HB are 15, 262, 258, 259, 260, 261, 262. The standard model has 1 big tray and under it a second tray.
With value I have to move to WINPRINT-CURR-TRAY? The value 7 is WPRT-AUTO-TRAY.
Or do I have to use/make an other solutions.
#WINPRINTER