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
{
static void Main(string[] args)
{
Console.WriteLine("\\t{0}\\t{1}\\t{2}",
"1", "2", "three");
}
}
}
Visual COBOL:
program-id. Program1 as "cblConTest1.Program1".
data division.
working-storage section.
procedure division.
Invoke type Console::WriteLine("\\t{0}\\t{1}\\t{2}",
"1", "2", "three");
goback.
end program Program1.