IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

converting a mainframe file with ASA CC to word document


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Lynne

New User


Joined: 15 Jan 2015
Posts: 93
Location: USA

PostPosted: Wed Apr 04, 2018 9:44 am
Reply with quote

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?

Thanks,
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Apr 04, 2018 10:37 am
Reply with quote

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.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Wed Apr 04, 2018 1:41 pm
Reply with quote

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 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.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2010
Location: USA

PostPosted: Wed Apr 04, 2018 7:53 pm
Reply with quote

There is a new parameter introduced in SYNCSORT supposed to automatically convert the output to standard PDF/RTF/HTML formats:
Code:
 OUTFIL ...,OUTPUT=PDF,...
 OUTFIL ...,OUTPUT=RTF,...
 OUTFIL ...,OUTPUT=HTML,...
This might be useful too, instead of reinventing the wheel.
Back to top
View user's profile Send private message
Lynne

New User


Joined: 15 Jan 2015
Posts: 93
Location: USA

PostPosted: Fri Apr 06, 2018 9:57 am
Reply with quote

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).

thanks again.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Apr 06, 2018 11:30 am
Reply with quote

I downloaded CBT "file" 314 for the TXT2RTF Rexx exec. This "file" also includes XMITXP.

I ran a data set that would not load into LibreOffice properly using my method through TXT2RTF, downloaded the generated RTF and loaded it into LibreOffice. It seems to be good.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
Search our Forums:

Back to Top