When creating a SQL function, the naming convention used when creating the SQL function controls if the the *SVRPGM gets USRPRF(*USER) or USRPRF(*OWNER).
If using *SYS, the *SRVPGM is created with USRPRF(*USER)
If using *SQL, the *SRVPGM is created with USRPRF(*OWNER)
------------------------------
Krister Karlsson
IBM i System Administrator
Crosskey
Stockholm
------------------------------
Original Message:
Sent: Mon December 15, 2025 08:20 AM
From: Robert Berendt
Subject: default setting on srvpgm
I'd be surprised if any *CMD object had any bearing on this.
IDK if there's anything in QAQQINI or any other related area.
------------------------------
Robert Berendt IBMChampion
Business Systems Analyst, Lead
Dekko
Fort Wayne
Original Message:
Sent: Fri December 12, 2025 01:52 PM
From: Michael Cramer
Subject: default setting on srvpgm
Hi,
In creating a sql function, I'm trying to identify which qsys cmd is used for doing that as I would like to set certain settings on the command as default. I initially looked at the runsqlstmt cmd but that doesn't seem to be used. neither does the crtsrvpgm command.
I know I can set some of these defaults from within the create sql function sql text but wanted to make it a default thru a chgdftcmd
Parms I was looking at changing are the USRPRF and DYNUSRPRF setting.
------------------------------
Michael Cramer
------------------------------