Change Current Library (CHGCURLIB) Procedure

Schema IQUERY

Index

CHGCURLIB Procedure

CHGCURLIB( 'current-library' );

CHGCURLIB UDF:

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' );     
    

Parameters

CURLIB - New Current Library

The library name to be assigned as the Current Library (*CURLIB) for the job running the Procedure or Function.

Examples

dcl-s testLib varchar(10) int('TESTDATA');

exec SQL call iQuery.chgcurlib( :testLib );
This examples sets the current library to TESTDATA which is stored in the TESTLIB host variable.