PreviousNext
Help > Development > Accessing AS/400 data > AS/400 Libraries and Files > Libraries > Libraries and SQL queries with hQueryDefault mode.
Libraries and SQL queries with hQueryDefault mode.

Only file name is used in a SQL query.
So, it is easier to have the file in LIBL.

If the file is not in the LIBL, you can dynamically change the current library before to execute a query, with ASExec.

 

ASExec("CHGCURLIB MYLIB")

HExecuteQuery(REQ_Requext3,hQueryDefault)