@setlocal
@echo off

rem
rem  Script to create DB2 databases
rem  #############################

rem  ####################
rem  # Set the database and database directory vars
rem  #####################

set DB_DIR=%1
set USER=%2
set PWD=%3


@call createdb.bat corpdb %DB_DIR%\corpdb %USER% %PWD%
@call schema_C corpdb %DB_DIR%\corpdb


@call createdb.bat mfgdb %DB_DIR%\mfgdb %USER% %PWD%
@call schema_M mfgdb %DB_DIR%\mfgdb


@call createdb.bat ordsdb %DB_DIR%\ordsdb %USER% %PWD%
@call schema_O ordsdb %DB_DIR%\ordsdb


@call createdb.bat suppdb %DB_DIR%\suppdb %USER% %PWD%
@call schema_S suppdb %DB_DIR%\suppdb


@call createdb.bat utildb %DB_DIR%\utildb %USER% %PWD%
@call schema_U utildb %DB_DIR%\utildb  


rem  ########################
rem  # END OF DATABASES BUILD
rem  ########################

:exit
endlocal
