Uses the specified routine SQL Archive (SAR) file to define a routine in the database.
dbadm. This authority must be granted directly to the user and not inherited via a role.
Database. If implicit connect is enabled, a connection to the default database is established.
>>-PUT ROUTINE--FROM--file-name---------------------------------> >--+-------------------------------------+--------------------->< '-OWNER--new-owner--+---------------+-' '-USE REGISTERS-'
PUT ROUTINE FROM procs/proc1.sar;
No more than one procedure can be concurrently installed under a given schema.
If a GET ROUTINE or a PUT ROUTINE operation (or their corresponding procedure) fails to execute successfully, it will always return an error (SQLSTATE 38000), along with diagnostic text providing information about the cause of the failure. For example, if the procedure name provided to GET ROUTINE does not identify an SQL procedure, diagnostic "-204, 42704" text will be returned, where "-204" and "42704" are the SQLCODE and SQLSTATE, respectively, that identify the cause of the problem. The SQLCODE and SQLSTATE in this example indicate that the procedure name provided in the GET ROUTINE command is undefined.