Depends on what Naming convention you are using in the environment where you
create the function.
1. SQL Naming Function --> the object is created in the Default/Current
Schema.
If a current schema is not set (SET CURRENT SCHEMA) the object will be
created in the library with the same name as the current user profile (if it
exists)
2. System Naming Conventions
If a current schema is set, the database object is created in the
current schema (BTW library list is no longer searched)
If a CURLIB is set (CL Command CHGCURLIB), the database object is
created in the current library
If neither a current schema nor a current library is set, the database
object will be created in the QGPL.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
Modernization ? Education ? Consulting on IBM i
Database and Software Architect
IBM Champion since 2020
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
"Train people well enough so they can leave, treat them well enough so they
don't want to. " (Richard Branson)
"Learning is experience ? everything else is only information!" (Albert
Einstein)
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Giovanni
Arturi via RPG400-L
Sent: Sunday, 15 February 2026 15:38
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Cc: Giovanni Arturi <giovanni.arturi@xxxxxxxxx>
Subject: Default library on creating UDFT Function
Hi all
If i run "Create or replace Function MyProc", in wich library the function
is created ??
If i know a function UDFT name, how can search in which library is located ?
Thanks
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.