: 01 Wortfeld PIC X(40). 01 E-Zaehler PIC 99 VALUE ZERO. : MOVE "Worbspulenphasengeneratorenreplikatoren" TO Wortfeld. INSPECT Wortfeld TALLYING E-Zaehler FOR ALL "e". |
: 01 Wortfeld PIC X(40). 01 EN-Zaehler PIC 99 VALUE ZERO. : MOVE "Worbspulenphasengeneratorenreplikatoren" TO Wortfeld. INSPECT Wortfeld TALLYING EN-Zaehler FOR ALL "en". |
: 01 L-Mod PIC X(10). 01 Modellbez PIC X(10). 01 G-Zaehler PIC 9 VALUE ZERO. : MOVE L-Mod TO Modellbez. INSPECT Modellbez TALLYING FOR LEADING "G". |
: 01 L-Mod PIC X(20). 01 Modellbez PIC X(20). 01 Z-Zaehler PIC 99 VALUE ZERO. : MOVE L-Mod TO Modellbez. INSPECT Modellbez TALLYING Z-Zaehler FOR CHARACTERS AFTER INITIAL ".". |
: 01 L-Mod PIC X(20). 01 Modellbez PIC X(20). 01 G-Zaehler PIC 99 VALUE ZERO. 01 Z-Zaehler PIC 99 VALUE ZERO. : MOVE L-Mod TO Modellbez. INSPECT Modellbez TALLYING G-Zaehler FOR CHARACTERS BEFORE "-" Z-Zaehler FOR CHARACTERS AFTER ".". |
: 01 Botschaft PIC X(30). : MOVE "Dies ist die geheime Botschaft" TO Botschaft. INSPECT Botschaft REPLACING ALL "A" BY "S" "B" BY "v" "C" BY "u" "D" BY "w" "E" BY "R" "F" BY "H" "G" BY "U" "H" BY "N" "I" BY "I" "J" BY "P" "K" BY "c" "L" BY "z" "M" BY "b" "N" BY "p" "O" BY "n" "P" BY "C" "Q" BY "x" "R" BY "A" "S" BY "G" "T" BY "j" "U" BY "D" "V" BY "g" "W" BY "O" "X" BY "f" "Y" BY "L" "Z" BY "o" "a" BY "J" "b" BY "s" "c" BY "K" "d" BY "r" "e" BY "i" "f" BY "l" "g" BY "W" "h" BY "k" "i" BY "V" "j" BY "q" "k" BY "B" "l" BY "e" "m" BY "F" "n" BY "a" "o" BY "T" "p" BY "t" "q" BY "Z" "r" BY "E" "s" BY "d" "t" BY "h" "u" BY "M" "v" BY "m" "w" BY "y" "x" BY "Q" "y" BY "Y" "z" BY "X". |
: 01 Botschaft PIC X(30). : MOVE "wVid Vdh rVi WikiVFi vThdKkJIh" TO Botschaft. INSPECT Botschaft REPLACING ALL "S" BY "A" "v" BY "B" "u" BY "C" "w" BY "D" "R" BY "E" "H" BY "F" "U" BY "G" "N" BY "H" "l" BY "I" "P" BY "J" "c" BY "K" "z" BY "L" "b" BY "M" "p" BY "N" "O" BY "O" "C" BY "P" "x" BY "Q" "A" BY "R" "n" BY "S" "j" BY "T" "D" BY "U" "g" BY "V" "O" BY "W" "f" BY "X" "L" BY "Y" "o" BY "Z" "J" BY "a" "s" BY "b" "K" BY "c" "r" BY "d" "i" BY "e" "I" BY "f" "W" BY "g" "k" BY "h" "V" BY "i" "q" BY "j" "B" BY "k" "e" BY "l" "F" BY "m" "a" BY "n" "T" BY "o" "t" BY "p" "Z" BY "q" "E" BY "r" "d" BY "s" "h" BY "t" "M" BY "u" "m" BY "v" "y" BY "w" "Q" BY "x" "Y" BY "y" "X" BY "z". |
: 01 Leerzaehler PIC 99. 01 Botschaft PIC X(30). : MOVE "Dies ist die geheime Botschaft" TO Botschaft. INSPECT Botschaft TALLYING Leerzaehler FOR ALL SPACES REPLACING ALL "A" BY "S" "B" BY "v" "C" BY "u" "D" BY "w" "E" BY "R" "F" BY "H" "G" BY "U" "H" BY "N" "I" BY "I" "J" BY "P" "K" BY "c" "L" BY "z" "M" BY "b" "N" BY "p" "O" BY "n" "P" BY "C" "Q" BY "x" "R" BY "A" "S" BY "G" "T" BY "j" "U" BY "D" "V" BY "g" "W" BY "O" "X" BY "f" "Y" BY "L" "Z" BY "o" "a" BY "J" "b" BY "s" "c" BY "K" "d" BY "r" "e" BY "i" "f" BY "l" "g" BY "W" "h" BY "k" "i" BY "V" "j" BY "q" "k" BY "B" "l" BY "e" "m" BY "F" "n" BY "a" "o" BY "T" "p" BY "t" "q" BY "Z" "r" BY "E" "s" BY "d" "t" BY "h" "u" BY "M" "v" BY "m" "w" BY "y" "x" BY "Q" "y" BY "Y" "z" BY "X". |