So if you want to offload some processing from the mainframe to the PC, you can either emulate a mainframe and keep everything as EBCDIC, or you can convert your data from EBCDIC to ASCII so that you can run at native speed. If it is a binary file, you could write a conversion program specific to that format to convert it properly.
Or alternatively, you could stop beating about the bush and simply run an EBCDIC version of Windows. ucx64e.zip is available at https://pdos.org (search for ucx64e) It's still proof of concept, so the only program that I have made available is hexdump. And here is hexdump.exe - a Win64 PE/COFF EBCDIC executable with x64 instructions, running at full native speed and dumping an EBCDIC file with glorious x'15' line endings ... bios starting type in "dir" to get a list of files type in "type" to show the contents of a file type in "e/me/uemacs file.txt" to edit a file ctrl-x, ctrl-s saves; ctrl-x, ctrl-c quits about to execute program with entry point 000000004039D000 welcome to PDOS-generic running as pdos before printing parm argv1 is fba1b1.vhd about to open disk done open lba is 1f8 fat type is about to call app at address 0000000040E61000 welcome to pcomm type help for help enter a command dir PDOS TEST TXT COMMAND EXE CONFIG SYS BIOS EXE PDOS EXE TEST2 TXT XXX TXT TEST C TEST S DOS enter a command type test.c int main(void) { printf("hello, world\n"); return 5; } enter a command hexdump test.c about to call app at address 0000000040E6A000 000000 8995A340 94818995 4DA59689 845D15C0 int main(void).{ 000010 15979989 95A3864D 7F888593 93966B40 .printf("hello, 000020 A6969993 84E0957F 5D5E1599 85A3A499 world\n");.retur 000030 9540F55E 15D015 n 5;.}. return from app is hex 0 enter a command exit return from app is hex 0 return from called program is hex 0 enter command, exit to exit exit bios exiting There is a readme.txt in the archive if you want more info. BFN. Paul. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
