home *** CD-ROM | disk | FTP | other *** search
/ Datatid 1999 #6 / Datatid_1999-06.iso / internet / Tango352Promo / P.SQL / PTKPKG.1 / ASSEMBLE.BAT < prev    next >
Encoding:
DOS Batch File  |  1996-12-19  |  1.0 KB  |  46 lines

  1. @echo off
  2. :: Batch file to assemble the COBOL interface modules
  3. :: Run with one parameter - the compiler to prepare for
  4. ::   (Realia3, Realia4, or MicroFocus)
  5. :: Example for MicroFocus COBOL:
  6. ::      assemble microfocus
  7. ::
  8. ::
  9.  
  10. if %1$ == $ goto usage
  11. if %1$ == realia3$ goto realia3
  12. if %1$ == REALIA3$ goto realia3
  13. if %1$ == Realia3$ goto realia3
  14. if %1$ == realia4$ goto realia4
  15. if %1$ == REALIA4$ goto realia4
  16. if %1$ == Realia4$ goto realia4
  17. if %1$ == microfocus$ goto microfocus
  18. if %1$ == MICROFOCUS$ goto microfocus
  19. if %1$ == Microfocus$ goto microfocus
  20. goto usage
  21.  
  22. :realia3
  23. copy realia.flg far.flg
  24. MASM /MX /DREALIA4 sqlcob;
  25. if errorlevel 1 goto err
  26. goto out
  27.  
  28. :realia4
  29. copy realia.flg far.flg
  30. MASM /MX sqlcob;
  31. if errorlevel 1 goto err
  32. goto out
  33.  
  34. :microfocus
  35. copy mfocus.flg far.flg
  36. MASM /MX sqlcob;
  37. if errorlevel 1 goto err
  38. goto out
  39.  
  40. :usage
  41. echo USAGE:  assemble realia3  OR  assemble realia4  OR  assemble microfocus
  42. goto out
  43.  
  44. :err
  45. echo An error occured during compilation ...
  46. :out