is there any tool that will convert an assembler listing or mainframe report with ASA carriage control to a file you can read with the right format? so it looks like it would if you had printed a hardcopy on a printer?
I've looked around and it seems everything wants to keep the ASA if you go to file. I want something I can read from my screen or pc. I was thinking a word document would be nice because you could add your own notes, highlighting, etc to any report or listing (like i've done with pen on a listing).
but frankly, I would be happy just to have the correct spacing so everything isn't crunched together. In an assembly listing, for every blank line, or space command, it just puts in a 0 CC (for double space), which means all your subroutines which you took pains to separate visually are now squished togehter when you look at the listing on file.
and yes, I know I could write something that would take the listing and inseart a blank line for a CC of 0 in the output - but I would like to know if there is already a tool out already out there?
Joined: 30 Nov 2013 Posts: 796 Location: The Universe
What I did years ago (back in the 1990s) was I wrote a mainframe program to build a text data set using the form feed character and blank lines in place of carriage control characters. The program handles both ASA and machine carriage control. I can download this data set to my PC as a text transfer (the EBCDIC FF character translates to the Ascii FF character) and load the PC file into a word processor.
WordPerfect and M$ Word worked well, LibreOffice and/or Open Office have trouble. You tell the word processor to use a fixed width, usually around 8 point font and print in landscape mode. You'll find you have to fiddle with margins to get good results. I could persuade Word Perfect to go 2 mainframe pages in one print page in portrait mode with very tiny type, or even 4 pages with very very tiny type, though I had to rearrange the pages to get good results, but that stuff only ran on WinXP. In any event the page rearrangement code got lost when the WinXP machine croaked a few years ago.
Windoze Notepad displays the file quite nicely - obviously with no pagination.
Joined: 07 Feb 2009 Posts: 1178 Location: Vilnius, Lithuania
Currently driving from Vilnius to Oostende, but if you can wait a bit, I'm doing the same with some files, convert them into a very sparse .RTF format that loads in M$ Word and LibreOffice Writer without problems. You can find samples on my Google drive via the "set of programs" link in "Projects" on https://prino.neocities.org/indez.html The file to look for is "liftrtf.rar" and the original text files are in "lifttxt.rar". Basically I just add a few heading lines, end every line with "\par", and sprinkle in some "\page" tags.
thank you all so much. I tried the syncsort, but you have to set up an HFS file, and I never do anything on the unix side. but I did set up some JCL with a path to create a file in my default unix directory.. but it didn't work. I probably set up the unix part wrong.
I tried to find a sample syncsort JCL somewhere to do this, but no luck.
However, I did look up XMITXP - a great utility written by Lionel Dyck. this also takes a mainframe file and can convert it to an RTF file (or html or pdf).