I am looking for a program or API call that will give me, with absolute accuracy, the name of the Workstation Display File (and Its Record Type) that is being used by a given Job. I have the Job information (such as Job Name, Job User, and Job Number. This will allow me to quickly identify the Display File that a given job to assist in program development. If I can do this in RPGLE then I can share it over a SQL Connection to my interface/telnet program.
I have looked at using the Job List of Open Objects API (QDMLOPNF) and a combination of the Job Stack API (QWVRCSTK) but they do not give me the accuracy I need. They also assume that I know what DDS is attached to program, but if it is a system program or non standard program the results are not accurate. Please help me.
Thank you, in advance.