New ATE function AG_GETDPI (111) returns the DPI for the workstation, and optionally for the monitor associated with the specified ctlid. See MX_GETDPI for more details.
? TAB(-10,AG_GETDPI); {ctlid}; chr(127);
input "", sysdpi, ctldpi