我正在寻找使用cobol的示例,例如mf cobol或gnucobol。我想要替代VB或C。自Cobol 61以来的旧coboller。我看过Java和python示例,但我不清楚它们。
参数大小,内容和顺序是我要寻找的内容以及翻译例程或模块名称。
Vb或c示例也将像我使用这些语言一样。
一个预期结果的cobol示例:
Id division.
Program-Id. Somename.
Environment division.
Data division.
Working-storage section.
01 Some-existing-text pic x(32000) value
"The quick brown fox jumped over the silver moon".
01 input-text-type pic x(20) value "english".
01 resulting-text pic x(32000) value
"Der schnelle braune Fuchs sprang über den silbernen Mond ".
01 destination-text-type pic x(20) value "German".
Procedure division.
Start-here.
Call "translation-routine" using Some-existing-text,
input-text-type,
Resulting-text,
Destination-text-type.
Stop-here.
Stop run.
看看这个,我在linux上试了一下,它的工作原理还不错。