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

  1. @echo off
  2. @echo -----------------------------------------------------------------------
  3. @echo    CICSLINK -  Link %1.obj
  4. @echo -----------------------------------------------------------------------
  5. if %1.==. goto msg
  6. if not exist %1.obj goto msg1
  7. if exist %1.def goto dlink
  8. @echo ;Module definition file for %1 program >  %1.def
  9. @echo LIBRARY INITINSTANCE >>   %1.def
  10. @echo PROTMODE             >>   %1.def
  11. @echo DATA NONSHARED       >>   %1.def
  12. @echo CODE LOADONCALL      >>   %1.def
  13. @echo EXPORTS %1 @1        >>   %1.def
  14. :dlink
  15. link /NOD /NOP /MAP %1,%1.dll,,COBLIB+DOSCALLS+FAACLIB,%1.DEF;
  16. if errorlevel 1 goto aerr
  17. goto aend
  18. :aerr
  19. @echo .
  20. @echo    Link errors discovered
  21. @echo .
  22. goto aend
  23. :msg1
  24. @echo .
  25. @echo    %1.obj does not exist
  26. :msg
  27. @echo .
  28. @echo    This command will link a translated and compiled CICS program. The
  29. @echo    object module is expected to have an extension of OBJ and the module
  30. @echo    definition file and extension of DEF. The input into this process is:
  31. @echo .
  32. @echo      File             Contents                  Source
  33. @echo    -------------    ---------------------     -----------------
  34. @echo    progname.OBJ     Object module              from CICSCOMP
  35. @echo    progname.DEF     Module definition file     user defined
  36. @echo    COBLIB.LIB       COBOL compiler library     Supplied with COBOL/2
  37. @echo    DOSCALLS.LIB     OS/2 call library          Supplied with OS/2
  38. @echo    FAACLIB.LIB      CICS OS/2 library          Supplied with CICS OS/2
  39. @echo .
  40. @echo    The Output is:-     progname.DLL     Executable program
  41. @echo                        progname.MAP     Map listing
  42. @echo .
  43. @echo    To run this command enter:  CICSLINK progname
  44. @echo .
  45. @echo                        progname can be fully qualified and is required
  46. @echo .
  47. @echo    The definitions file progname.DEF is created if it does not exist
  48. :aend
  49.  
  50.