如何从ILE程序中读取liblist? (最好是RPG或CL) [英] How can I read the liblist from within an ILE-Program? (preferably RPG or CL)

查看:119
本文介绍了如何从ILE程序中读取liblist? (最好是RPG或CL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过使用不同的liblist运行程序,我们可以控制as400上的程序可以使用哪些对象.但是某些操作不能由此直接控制.因此,我的程序需要读取liblist并确定其中的某些库以及如何执行操作.

We control on what objects our programs on the as400 work, by running them with different liblists. But some operations cannot be directly controlled by this. Therefore, my program needs to read the liblist and decide on some of the libraries in it, how to act.

我找不到任何可以从程序中读取liblist条目的api.我所期望的是某种api,它可以让我按优先级遍历liblist条目,或者以liblist给定的顺序给我一个数组.如果可能的话,我希望使用RPG或CL,但也可以使用其他ILE语言.

I could not find any api to read the liblist entries from within a program. What I would expect, is some kind of api that lets me iterate through the liblist entries by priority or gives me an array with them in the order given by the liblist. I'd prefer RPG or CL if possible, but other ILE languages are available, too.

(如果您想知道为什么我要这样做,我又问了一个问题,它解释了我所面临的封闭问题:

(If you wonder, why I'm trying to do this, I asked another question, that explaines the enclosing problem I'm faced with: How can I create a DTAQ in one of two different libs, controlled by the jobs liblist? But the liblist parsing is an approach to solve that one and is an individual problem).

推荐答案

您可以使用

You can use the QUSRJOBI API to retrieve the library list for a job. You can also use the CL command ADDLIBLE and monitor for error message CPF2103 (library already exists in library list).

这篇关于如何从ILE程序中读取liblist? (最好是RPG或CL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆