home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wsgatsam.zip / install / WSGWinstallDB.bat < prev    next >
DOS Batch File  |  2003-02-24  |  1KB  |  41 lines

  1. @title Creating database - IBM WebServices Gateway
  2.  
  3. @rem calls CreateWSGWDB script
  4.  
  5. @rem parameters are 1=WebSphere AppServer install directory (e.g. C:\WebSphere\AppServer) 
  6. @rem                2=<db2_userid>
  7. @rem                3=<db2_password>
  8.  
  9. @if .%1==. goto invalidparams
  10. @if .%2==. goto invalidparams
  11. @if .%3==. goto invalidparams
  12.  
  13. @if EXIST %1 goto goodparams
  14. @echo The directory %1 specified for WebSphere AppServer install directory does not exist.
  15. @goto invalidparams
  16.            
  17. @rem Parameters are good.
  18. :goodparams
  19.  
  20. @call %~dp0installDB.bat %2 %3 > %1\logs\WSGWinstallDB.log 2>&1
  21. @if errorlevel 1 goto LoadFailed
  22.  
  23. @echo.
  24. @echo The WebServices Gateway database creation procedure finished.
  25. @echo Please check %1\logs\WSGWinstallDB.log to make sure the 
  26. @echo procedure completed successfully
  27. @goto :eof
  28.  
  29. :LoadFailed
  30. @echo.
  31. @echo Warning: The WebServices Gateway database has NOT been created.
  32. @echo Try looking at the WSGWInstallDB.log file in the \logs subdirectory 
  33. @echo of the WebSphere AppServer dir to diagnose the problem.
  34. @echo.
  35.  
  36. :invalidparams
  37.  
  38. @echo Parameters are 1=WebSphere AppServer directory (e.g. C:\WebSphere\AppServer) 
  39. @echo                2=DB2 userid
  40. @echo                3=DB2 password
  41.