home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
DATABASE
/
STOCK
/
CSETPP
/
RESETDB.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-06-06
|
1KB
|
32 lines
/* REXX */
/*
COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1994.
DISCLAIMER OF WARRANTIES:
The following [enclosed] code is sample code created by IBM
Corporation. This sample code is not part of any standard IBM product
and is provided to you solely for the purpose of assisting you in the
development of your applications. The code is provided "AS IS",
without warranty of any kind. IBM shall not be liable for any damages
arising out of your use of the sample code, even if they have been
advised of the possibility of such damages.
*/
DBName = "BrchOne"
say "Populating" DBName
call dbm "connect to" DBName
say "Deleting current contents of" DBName "(if any)"
call dbm "delete from receivedorder"
call dbm "delete from inventory"
say "Inserting data into" DBName
call dbm "insert into inventory values( 'RAM4-72', 200.85, 210.68, 25, '4M SIMM 72 pin 70 ns')"
call dbm "insert into inventory values( 'MONAD14', 380.45, 409.00, 15, 'ADI 14i .28 Microsc.')"
call dbm "insert into inventory values( 'PRTZP52', 345.45, 389.00, 23, 'ZP Inkjet 360x360 ')"
call dbm "insert into receivedOrder values( 111,'RAM4-72',10,1800.00,'01/01/1994',1)"
call dbm "insert into receivedOrder values( 112,'RAM4-72',10,1823.00,'02/01/1994',0)"
call dbm "commit"
call dbm "connect reset"
say BrchOne "data population complete."