dos_compilers/Microsoft COBOL v21/m.sh
2024-07-24 07:04:43 -07:00

12 lines
192 B
Bash

str=$(tr '[a-z]' '[A-Z]' <<< $1)
rm $str.INT 2>/dev/null
rm $str.LST 2>/dev/null
ntvdm -u -r:. -h -c -d COBOL $str,$str,$str/D\;
rm $str.LST 2>/dev/null
ntvdm -u -r:. -c RUNCOB $str
echo