View Full Version : Display DSPJOBD parameters
Guest.Visitor
01-01-1995, 02:00 AM
I'm trying to write a program that displays a job description in a display file and allows the user to change the parameters.Can anybody help me find a way to retrieve the job description attributes and display them to the screen?I know to get the object description, you can use the DSPOBJD command and send the results to an *Outfile, then retrieve the results using conventional file read methods.I can't find a similar method for job descriptions.Any help would be greatly appreciated. Thanks in advance, kelvis
David Abramowitz
03-20-1999, 04:55 AM
On Saturday, March 20, 1999, 02:53 AM, kelvis wrote: I'm trying to write a program that displays a job description in a display file and allows the user to change the parameters. Can anybody help me find a way to retrieve the job description attributes and display them to the screen? I know to get the object description, you can use the DSPOBJD command and send the results to an *Outfile, then retrieve the results using conventional file read methods. I can't find a similar method for job descriptions. Any help would be greatly appreciated. Thanks in advance, kelvis <hr> I know I'm not getting the entire picture here. Otherwise you could just place ?CHGJOBD on a menu. What is it that you are trying to accomplish. David Abramowitz
Guest.Visitor
03-20-1999, 01:28 PM
There is the Retrieve Job Description Information (QWDRJOBD) API in the Work Management chapter of the System API Reference. This would appear to fit your needs (the retrieval side at any rate).
Guest.Visitor
03-20-1999, 10:31 PM
I want to be able to display the job description before I allow changes to it. kelvis
Guest.Visitor
03-23-1999, 08:17 AM
On Saturday, March 20, 1999, 02:53 AM, kelvis wrote: I'm trying to write a program that displays a job description in a display file and allows the user to change the parameters. Can anybody help me find a way to retrieve the job description attributes and display them to the screen? I know to get the object description, you can use the DSPOBJD command and send the results to an *Outfile, then retrieve the results using conventional file read methods. I can't find a similar method for job descriptions. Any help would be greatly appreciated. Thanks in advance, kelvis Kelvis, I would use the API that Bruce suggested. I still have the source for a program that reads the *outfile. The problem with this is that the printed output may change between releases so you have to change the program when a new release is installed. I converted that program to use the QWDRJOBD API and it has not required change through 4 releases. The APIs are the supported interface and the format of their output will not change nearly as often. I have provided some source from a command I wrote to remove a job description library in mass. Unfortuanatly it is not RPGIV but it does show how easy this API is to use. <pre> DCL &JOBD *CHAR 20 DCL &JOBD0100 *CHAR 2048 DCL &RETURNLEN *CHAR 4 DCL &ERRORSTRUC *CHAR 8 + VALUE(X'0000000000000000') ... CHGVAR &JOBD (&ODOBNM *CAT &ODLBNM) CALL QWDRJOBD (&JOBD0100 &RETURNLEN 'JOBD0100' &JOBD + &ERRORSTRUC) CHGVAR &LIBOFF (%BINARY(&JOBD0100 361 4) + 1) CHGVAR &LIBLEN (%BINARY(&JOBD0100 365 4) * 11) CHGVAR &INLLIBL %SST(&JOBD0100 &LIBOFF &LIBLEN) ... </pre> David Morris
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.