我正在寻找一个程序或 API 调用,它可以绝对准确地提供给定作业正在使用的工作站显示文件的名称(及其记录类型)。我有作业信息(例如作业名称、作业用户和作业编号)。这将使我能够快速识别给定作业的显示文件,以协助程序开发。如果我可以在 RPGLE 中执行此操作,那么我可以共享它 我已经考虑过使用开放对象 API 的作业列表 (QDMLOPNF) 和作业堆栈 API (QWVRCSTK) 的组合,
但它们也没有提供我所需的准确性。假设我知道程序附加了什么DDS,但如果它是系统程序或非标准程序,则结果不准确。
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.
发布评论
评论(3)
您可以使用
DSPJOB OPTION(*OPNF)
命令手动找到它,并查找打开的DSP类型的文件。有一个作业 API 也可以提供此信息。
You can find this manually with the
DSPJOB OPTION(*OPNF)
command and look for open files of type DSP.There is a job API available that may provide this information as well.
经过大量研究和谷歌搜索后,我找到了一个完全符合我需要的 API。这是检索输出信息 (QWSRTVOI) API,我通过位于此处的 IBM API 文档找到了它: http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/wss.pdf。
希望这对像我一样沮丧的人有所帮助。 IBM 必须这样做,所以我知道必须有一个 API 来让我这样做。
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.
您是否考虑过研究 IceBreak。应该很容易进行屏幕抓取并呈现在网页上。一度有人讨论免费版本。 http://www.icebreak.dk/
Have you considered looking into IceBreak. Should be very easy to do screen scraping with and present on a web page. At one time there was talk about a free version. http://www.icebreak.dk/