Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Cobol

  1. #1
    Join Date
    Nov 2005
    Beans
    83

    Cobol

    I have to learn cobol. I know what you are going to say. Probably something like what Dijkstra said "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence."

    But aparently 75% of business data is processed in COBOL

    So my college is teaching it. Who knows, my first job might be as a cobol programmer (its pretty big where I live).

    Anyway I'm looking for a linux COBOL compiler. I found open-cobol
    But this aparently converts COBOL code to C code and then compiles it. I dont know if this is very compatible with what my proffesor will be using to grade my projects so I'm asking if any of you guys know of any other COBOL compiler or know anything about this one. I dont want to have to use windows to program in COBOL so plz help me.
    Last edited by otake-tux; January 11th, 2006 at 03:29 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Ontario Canada
    Beans
    269
    Distro
    Ubuntu 6.06

    Re: Cobol

    thats awsome that you posted this... im going to be switching over from web dev to software eng next week at my college... and in software... we will be learing Cobol... and i was thinking about the same this you are... any programs to compile

  3. #3
    Join Date
    Nov 2005
    Beans
    83

    Re: Cobol

    cool maybe we can help each other. tomorrow Im going to try to compile that open-cobol. If not ny tomorrow then definetly on thursday. Ill post and let you know how it goes.

    If you ever need anyhelp, feel free to ask.

  4. #4
    Join Date
    Aug 2005
    Location
    Ontario Canada
    Beans
    269
    Distro
    Ubuntu 6.06

    Re: Cobol

    where the hell can i go and find tut's for cobol lol i have never even seen what the syntax or anything even looks like.... ive never even used a program that even used cobol in the least lol

  5. #5
    Join Date
    Nov 2005
    Beans
    83

    Re: Cobol

    COBOL is not popular in the linux world. It still is , somehow, popular though. Click on the link I provided in the first post to see.
    this is hello world in cobol:
    Code:
    IDENTIFICATION DIVISION.
             Program-Id. Hello-World.
          *
           ENVIRONMENT DIVISION.
          *
           DATA DIVISION.
          *
           PROCEDURE DIVISION.
           Para1.
               DISPLAY "Hello, world.".
          *
               Stop Run.
    tutorial
    Last edited by otake-tux; January 11th, 2006 at 03:33 PM.

  6. #6
    Join Date
    Nov 2005
    Beans
    83

    Re: Cobol

    Okay, I finished installing a COBOL compiler. I installed the tinycobol compilor, if any of you guys know of a better one plz let me know.

    If you're interested in the compilor you can get a deb package here

    then run
    Code:
    sudo dpkg -i  tinycobol_0.61-1_i386.deb
    there probably will be missing dependancies. Use synaptic or apt-cache search to find them and install them.

  7. #7
    Join Date
    Apr 2005
    Location
    kw
    Beans
    35
    Distro
    Ubuntu Breezy 5.10

    Re: Cobol

    i downloaded the tinycobol package and its in my sys now,
    but there is no such htcobol command in my system !?

    bash: htcobol: command not found

  8. #8
    Join Date
    Mar 2005
    Beans
    947
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cobol

    Just because it compiles to C instead of native code, I wouldn't hold that against it. But beyond that, I'm not qualified to comment.

    Here are some others:

    http://www.thefreecountry.com/compilers/cobol.shtml

  9. #9
    Join Date
    Jun 2005
    Location
    Binyamina, Israel
    Beans
    75
    Distro
    Ubuntu Studio 10.10 Maverick Meerkat

    Re: Cobol

    I found tinyCobol to be excellent. It doesn't have some of the more advanced features, as it supports only the 85 standard, and it compiles to GCC assembly (which might be a blessing in disguise if you know your GCC-fu).

    You might want to try this repository, it's the latest version, and you can simply add it to your sources.list and install it via synaptic.
    I debug, therefore I code.

  10. #10
    Join Date
    Jan 2006
    Beans
    Hidden!

    Re: Cobol

    I used the given repository, updated and installed tinycobol without any problems. I then wrote a little hello world program to test it and saved it as hello.cob. I used the command 'htcobol hello.cob' but all I got was 'sh: as: command not found'. I was wondering if anyone who has used this could provide some help. I have verified that tinycobol installed by using 'htcobol -V' and the man pages and help all work fine, but I was unable to find an answer there. Any help would be appreciated.
    Last edited by adssse; May 7th, 2006 at 05:45 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •