Schema IQUERY
IndexCHGCURLIB( 'current-library' );
CHGCURLIB( CURLIB => 'current-library' );
The Change Current Library User Defined Function and Stored
Procedure changes the job's *CURLIB to the specified library.
EXEC SQL call iQuery.chgcurlib( 'QGPL' );
dcl-s testLib varchar(10) int('TESTDATA');This examples sets the current library to TESTDATA which is stored in the TESTLIB host variable.
exec SQL call iQuery.chgcurlib( :testLib );