Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.
Some SQL iQuery Functions support our polymorphic qualified name (PQN) syntax. This syntax allows users to specify the object name using two separate parameters, one parameter or one qualified parameter. Polymorphic qualified name syntax supports these syntaxes for object names:
Our Functions typically have 2 parameters for object names:
With PQN syntax, users can omit the 2nd parameter and include the fully qualified object name as the first parameter. For example:
iQuery.myFunc('qgpl','qrpglesrc')
and
iQuery.myFunc('qgpl/qrpglesrc')
These two variations produce the same results. Two separate parameters, or one parameter with both values.
In addition, if only the object name is specified, for example:
iQuery.myFunc('qrpglesrc')
Then the default value for the library or schema is used. Often this is *LIBL, but can be *CURLIB or some other documented value--see the UDTF's documentation for the specific default.