• Login
Community
  • Login

command to compile and execute code in COBOL

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 1.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Davila w.w
    last edited by Aug 24, 2018, 12:04 AM

    I have a cobalt code and I would like to compile it

    C 1 Reply Last reply Aug 24, 2018, 12:23 PM Reply Quote 0
    • C
      Claudia Frank @Davila w.w
      last edited by Aug 24, 2018, 12:23 PM

      @Davila-w.w

      I would use npp_exec plugin in order to achieve this but you can use the standard Run menu as well, depends how flexible you want to be.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 1
      • P
        PeterJones
        last edited by Aug 24, 2018, 1:29 PM

        … For example, here’s an NppExec script that I use to save, compile, and run a standalone C++ program:

        npp_save
        cd "$(CURRENT_DIRECTORY)"
        g++ "$(FILE_NAME)" -o "$(NAME_PART)"
        npp_run cmd.exe /k "$(NAME_PART)"
        

        For compiling cobol, you would use your cobol compiler rather than “g++”, and would have to format the command line appropriately; if your compiler is not in your path, you will have to do something like “c:\full\path\to\compileCobol.exe”.

        If you don’t want to also run the program when compiled, then you could just remove the “npp_run …” command from the NppExec script.

        1 Reply Last reply Reply Quote 3
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors