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

using TXT2PDF to colour specific lines


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

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Thu May 14, 2020 9:46 am
Reply with quote

I've got a requirement to produce PDF reports of SQL output (typically run from DSNTEP2).

I would like to be able to colour the input and output elements a different colour. Maybe even highlight DB2 errors and warnings as well.

Using TEXT ATTR with SCAN allows me to change the colour of a single text element based on a match, but what I need is to be able to dynamically colour complete lines based on content (or some keyword, such as "Output==>"

any help appreciated !!
Back to top
View user's profile Send private message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Thu May 14, 2020 9:48 am
Reply with quote

another way around this, does TXT2PDF allow for PDF command directives within the TXT input file ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10874
Location: italy

PostPosted: Thu May 14, 2020 11:42 am
Reply with quote

from the txt2pdf url
www.sanface.com/txt2pdf.html

Quote:

Here there are some of the things that you can achieve with txt2pdf:
. . .
. . .
You can mark coloured (using regular expressions) sentences in the produced PDF files.
. . .
Back to top
View user's profile Send private message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 131
Location: brisbane

PostPosted: Thu May 14, 2020 12:07 pm
Reply with quote

my operating environment is Z/OS. I don't believe the implementation of TXT2PDF supports Regex expressions. I wish it did !!
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 I need a 4 lines block where substrin... DFSORT/ICETOOL 12
No new posts Copy few lines from SYSOUT of 10 mill... All Other Mainframe Topics 5
This topic is locked: you cannot edit posts or make replies. Construct new record using specific f... DFSORT/ICETOOL 6
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
Search our Forums:

Back to Top