× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a POC program that is setting the current library, product library 1
and product library 2 using the QLICHGLL api. It works, meaning it changes
the libraries in the job. When setting the current library to *CRTDFT the
api throws an error CPF2110, (library not found) which yea, I get it
"*CRTDFT" does not exist, however it is an allowed input for the API.



Any thoughts on how to deal with that? Here's the relevant code:

**free

DCL-PI *n;

curLib char(11);

prodLib1 char(11);

prodLib2 char(11);

END-PI;



dcl-ds APIError qualified;

Bytes_provided int(10) inz(268);

Bytes_Available int(10);

MsgId char(7);

Reserved char(1);

MsgData char(240);

END-DS;



dcl-pr QLICHGLL extpgm('QLICHGLL');

Curlib char(11) const;

Prodlib1 char(11) const;

Prodlib2 char(11) const;

UsrLibl char(22) const dim(10);

nUsrLIblCount int(10) const;

Api_Error char(16);

END-PR;



//call the API



QLICHGLL(curLib : prodLib1 : prodLib2 : ' ' : -1 : APIError);



dsply APIError.MsgID;



return;





--

Jim Oberholtzer

Agile Technology Architects




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.