简体   繁体   English

如何在IBM i-series(AS / 400)上找到与CHGJOB INQMSGRPY(* DFT)对应的ILE C函数

[英]How to find the ILE C function corresponding to CHGJOB INQMSGRPY(*DFT) on IBM i-series (AS/400)

I know that lots of CL commands are available in C ILE but it's often very hard to find the C function name corresponding to the CL command. 我知道C ILE中有很多CL命令可用,但通常很难找到与CL命令对应的C函数名。

Do you know a website who reference all these ILE C function ? 你知道一个网站谁参考了所有这些ILE C功能? Do you know the ILE C function corresponding to the CL command : CHGJOB INQMSGRPY(*DFT) 你知道对应于CL命令的ILE C函数:CHGJOB INQMSGRPY(* DFT)

Of course I've tried to search on IBM public boulder site ... 当然,我试图在IBM公共博尔德网站上搜索...

Thanks. 谢谢。

I don't have experience calling APIs from C, but I think you're looking for the QWTCHGJB API. 我没有从C调用API的经验,但我认为您正在寻找QWTCHGJB API。

Here's IBM's QWTCHGJB API documentation for V5R4 . 这是IBM针对V5R4的QWTCHGJB API文档

Here's a code example that demonstrates a call to this API . 这是一个代码示例,演示了对此API的调用

You can use the API finder to search for this sort of info. 您可以使用API​​查找程序搜索此类信息。

(Note that you should seek out the appropriate documentation & resources for your particular version of the OS.) (请注意,您应该为特定版本的操作系统寻找适当的文档和资源。)

I think @dmc has the answer you're looking for. 我想@dmc有你想要的答案。 In general, CL commands aren't available in C, but there are APIs available which do many of the same functions as CL commands. 通常,CL命令在C中不可用,但是有些API可用于执行与CL命令相同的许多功能。

If you actually want to run an operating system command, use system(). 如果您确实要运行操作系统命令,请使用system()。

#include <stdlib.h>

   int main(void)
   {
     int result;

     result = system("CHGJOB INQMSGRPY(*DFT)");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM