@echo off
rem (c) Copyright IBM Corp. 2007 All rights reserved.
rem
rem The following sample of source code ("Sample") is owned by International
rem Business Machines Corporation or one of its subsidiaries ("IBM") and is
rem copyrighted and licensed, not sold. You may use, copy, modify, and
rem distribute the Sample in any form without payment to IBM, for the purpose
rem of assisting you in the development of your applications.
rem
rem The Sample code is provided to you on an "AS IS" basis, without warranty
rem of any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES, EITHER EXPRESS
rem OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
rem MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Some jurisdictions
rem do not allow for the exclusion or limitation of implied warranties, so the
rem above limitations or exclusions may not apply to you. IBM shall not be
rem liable for any damages you suffer as a result of using, copying, modifying
rem or distributing the Sample, even if IBM has been advised of the
rem possibility of such damages.
rem -------------------------------------------------------------------------
rem
rem SOURCE FILE NAME: UDFCat.db2
rem
rem SAMPLE: Drops and creates the UDFs implemented in UDFServer.cs
rem
rem BATCH FILE: UDFCat
rem To catalog stored procedures on Windows
rem
rem UDFDrop.db2 Drops the UDFs from DB2's catalogs
rem UDFCreate.db2 Creates the UDFs in DB2's catalogs
rem
rem Both CLP scripts can be run on their own
rem
rem Usage: UDFCat
rem --------------------------------------------------------------------------
db2 connect to sample
db2 -td@ -vf UDFDrop.db2
db2 -td@ -vf UDFCreate.db2
db2 connect reset