Skip to main content

You'll find it here:Ā cs2cobol.rocketsoftware.com

If you did a double take at that and are wondering why you might need such a tool, let me explain...

Visual COBOL allows you to compile applications directly to .NET bytecode - or even JVM bytecode - opening up a world of possibilities for integrating COBOL with these platforms and other languages. It's not just Java or C# developers who get to enjoy these ecosystems; Visual COBOL developers can tap into their libraries and functionality too.

That's where this tool comes in. If you come across a snippet of C# code online and wonder how to express it in COBOL, the C# to COBOL Converter will help bridge the gap. Give it a try!

using System;  
namespace CsharpString {  
  class Test {
    public static void Main(string [] args) {

      // create string
      string str = "C# to COBOL";
      Console.WriteLine("string: " + str);
      

// get length of str int length = str.Length;
Console.WriteLine("Length: "+ length); Console.ReadLine(); } } }


Scot Nielsen