Search code examples
ibm-midrangemainframe

I need to find out the name of a DDS Screen that a given telnet session is on? (I Series)


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.


Solution

  • After much research and Google-ing I located an API that does exactly what I need it to. It's the Retriieve Output Information (QWSRTVOI) API and i found through an IBM API Documentation located here: http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/wss.pdf.

    Hope this helps anyone that was just as frustrated as me. IBM has to do it, so I knew there had to be an API to let me do it.