Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
converting a mainframe file with ASA CC to word document

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Lynne Schuler

New User


Joined: 15 Jan 2015
Posts: 26
Location: USA

PostPosted: Wed Apr 04, 2018 9:44 am    Post subject: converting a mainframe file with ASA CC to word document
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: 640
Location: The Universe

PostPosted: Wed Apr 04, 2018 10:37 am    Post subject:
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: 1109
Location: Oostende, Belgium

PostPosted: Wed Apr 04, 2018 1:41 pm    Post subject:
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 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.
Back to top
View user's profile Send private message
sergeyken

Active User


Joined: 29 Apr 2008
Posts: 309
Location: Maryland

PostPosted: Wed Apr 04, 2018 7:53 pm    Post subject:
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 Schuler

New User


Joined: 15 Jan 2015
Posts: 26
Location: USA

PostPosted: Fri Apr 06, 2018 9:57 am    Post subject:
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: 640
Location: The Universe

PostPosted: Fri Apr 06, 2018 11:30 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts B059 PREMATURE END OF FILE mvmadhuvenkatesh CA Products 4 Tue Jun 19, 2018 10:50 am
No new posts Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Need help on TDQ load from file using... subratarec CICS 4 Wed Jun 13, 2018 11:32 pm
No new posts How to Count a particular record in a... Mounika Nemani DFSORT/ICETOOL 5 Tue May 29, 2018 1:07 pm
No new posts BAMAD file IO Error m1985nehal CICS 1 Fri May 25, 2018 11:51 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us