Deploying User-Defined Functions
Two user-defined functions (UDFs) are provided in the Siebel application: nextseq and exrate. The nextseq() UDF generates sequential values for Enterprise Integration Manager (EIM) export and the exrate() UDF is used for currency aggregation functions. After the schema is validated, you must install the UDFs using the following instructions. These instructions are applicable to both Windows and UNIX operating systems.
To deploy user-defined functions
Navigate to the output directory (DBSRVR_ROOT
\db2390\dboutput\instal
l on Windows or DBSRVR_ROOT/db2390/dboutput/install
on UNIX) and modify the udfftp.txt FTP file as follows:Change the &IP address to the IP address or domain name of your mainframe.
Change the &username to a valid TSO user ID.
Change the SIEBELQ1 high level DSN qualifier to your DSN qualifier.
Save the changes to the file.
Double-click DBSRVR_ROOT
\db2390\dboutput\install
\udfftp.bat (Windows) to execute the batch FTP script to send files to the mainframe, or issue the following command from UNIX:ftp -vn <udfftp.txt> udfftp.log
The script sends the following files to the mainframe from the DBSRVR_ROOT
\db2390\storproc\zos
directory on Windows or the DBSRVR_ROOT/db2390/storproc/zos
directory on UNIX:SIEBEL.UDF.RECEIVE.JCL
SIEBEL.UDF.LOAD.XMIT
SIEBEL.UDF.CNTL.XMIT
SIEBEL.UDF.DDL.XMIT
SIEBEL.UDF.DBRM.XMIT
On the mainframe, navigate to the USER_ID
.UDF.RECEIVE.JCL
data set and edit the data set by typinge
beside it, then press Enter.Press Enter again.
Modify the job card parameters according to the instructions included in the JCL member.
To submit the job, type submit on the command line, and press Enter. The files you sent to the mainframe in Step 2 are received in a readable format.
Edit the HLQ
.SIEBEL.UDF.DDL
file by typinge
before the data set name, and pressing Enter.Edit EXRATE by entering e before the function name and pressing Enter. Set the Collid value in the EXRATE function to your table owner name and set the WLM environment variable to the name of your application environment.
Edit NEXTSEQ by entering e before the function name and pressing Enter. Set the WLM environment variable to the name of your application environment.
Press F3 twice.
Edit the HLQ
.SIEBEL.UDF.CNTL
data set by typing e before the data set name and pressing Enter.In the HLQ
.SIEBEL.UDF.CNTL
data set, edit and run the following JCL members in the order shown:IEBCOPY
CREATUDF
BIND
WLMRFSH
The WLMRFSH (refresh) job must be the last job run.
Edit and submit each JCL member in turn as follows:
Edit the member by entering e before the member name and pressing Enter.
Edit the job card parameters according to the instructions in the member.
Submit the job by entering
submit
on the command line, and pressing Enter.
Make sure that the return code for each job equals 0.
Return to the midtier to continue the Siebel Schema installation by populating the schema with seed data.