Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CHGJOBD

Status
Not open for further replies.

jrowden773

Programmer
Oct 19, 2007
9
Hello All,

I am writing a CL program that retrieves a job description's initial lib list and puts it into a variable &hldlibl which I then plug into the CHGJOB command
It populates it with the 18 libs but for some reason puts quotes around it when executed which gives the error below. Any ideas how to prevent the quotes from being put in?

Any suggestions would be greatly appreciated


CHGJOBD JOBD(&JOBDLIB/&JOBD) INLLIBL(&HLDLIBL)

When executed:
207 - CHGJOBD JOBD(QGPL/ULRICHPTF) INLLIBL('UAIMLIBMOD UDTALIB UTLLIB ULRLIB UACCLIB UAIILIB UAIMLIB UDBFLEX UDRWLIB UHELPER UIMPLIB UTASKACCES UEDIFLEX QRJE QIDU QTEMP DBU70')
Value 'UAIMLIBMOD' for parameter INLLIBL not a valid name.
Error found on CHGJOBD command.
 
The INLLIBL parameter is a list of values, not a single value in a string.

You need to use the API QWDRJOBD to accomplish this cleanly. Here is a sample I found.

Da mihi sis crustum Etruscum cum omnibus in eo.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top