Thursday, May 28, 2009

(Q&A) How Can I Check the Status of Job Switch in RPG?

(From: Kammy)

In CL you can do this by using RTVJOBA command, the SWS parameter will return the switch values.

In RPG you can use Retrieve Job Description Information (QWDRJOBD) API having the following parameters:

1 Receiver variable Output Char(*)
2 Length of receiver variable Input Binary(4)
3 Format name Input Char(8)
4 Qualified job description name Input Char(20)
5 Error code

To learn more about this API you can check it here.
http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/apis/qwdrjobd.htm

No comments:

Post a Comment