The following C# console program, when translated to the following Visual COBOL equivalent, produces different results - apparently the tab (the \t escape sequence) is not recognized in the COBOL version of the program (???).
C# :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace csConTest1
{
class Program
{
staticvoid Main(string[] args)
{
Console.WriteLine("\t{0}\t{1}\t{2}",
"1", "2", "three");
}
}
}
Visual COBOL:
program-id. Program1as"cblConTest1.Program1".
datadivision.
working-storagesection.
proceduredivision.
InvoketypeConsole::WriteLine("\t{0}\t{1}\t{2}",
"1", "2", "three");
goback.
endprogramProgram1.