Community
    • Login

    command to compile and execute code in COBOL

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 2.1k Views 3 Watching
    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.
    • Davila w.wD Offline
      Davila w.w
      last edited by

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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Davila w.w
        last edited by

        @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
        • PeterJonesP Offline
          PeterJones
          last edited by

          … 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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors