home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / o22516d1.zip / CICSCOMP.@MD / CICSCOMP.CMD next >
OS/2 REXX Batch file  |  1992-07-14  |  979b  |  36 lines

  1. @echo off
  2. @echo -----------------------------------------------------------------------
  3. @echo    CICSCOMP -  Compile %1.cbl
  4. @echo -----------------------------------------------------------------------
  5. if %1.==. goto msg
  6. if not exist %1.cbl goto msg1
  7. COBOL %1,%1,%1,,%2;
  8. if errorlevel 1 goto aerr
  9. goto aend
  10. :aerr
  11. @echo .
  12. @echo    Compiler errors discovered
  13. @echo .
  14. goto aend
  15. :msg1
  16. @echo .
  17. @echo    %1.cbl does not exist
  18. :msg
  19. @echo .
  20. @echo    This command will compile a translated CICS program.  The program
  21. @echo    is expected to have an extension of CBL. The output is:
  22. @echo .
  23. @echo          programname.OBJ    (object file)
  24. @echo          programname.LST    (Listing file)
  25. @echo .
  26. @echo    To run this command enter:
  27. @echo .
  28. @echo        CICSCOMP programname  'compiler directives'
  29. @echo .
  30. @echo    programname can be fully qualified and is required
  31. @echo .
  32. @echo    'compiler directives' can be any valid COBOL/2 directive
  33. @echo .
  34. :aend
  35.  
  36.