HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
(1) Storage directory and filename
- Directory
- UNIX Datareplicator: /opt/hirdbds/lib/sample/
- Windows Datareplicator: Datareplicator-installation-directory\sample\
- Filename
- hde_uocsample.c
(2) Contents of the source file
The sample send data UOC routine is created on the basis of the following specifications:
- Check the stock table's product code and stock quantity and send the corresponding data.
- The conditional expressions are shown below. If the conditions are satisfied, the UOC routine sets HDE_EXT_SEND as its return value.
Product code = 10 and stock quantity is at least 100
or
Product code = 20 and stock quantity is at least 50
- Data in extraction tables other than the stock table are all subject to transmission processing unconditionally.
(3) Sample library creation procedure
The following example creates a sample library for HP-UX:
$ cc -c +z -I/opt/hirdbds/include hde_uocsample.c
$ ld -b -o libhdesuoc.sl hde_uocsample.o
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.