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

New User


Joined: 31 Oct 2006
Posts: 91
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

New User


Joined: 31 Oct 2006
Posts: 91
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: 10801
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

New User


Joined: 31 Oct 2006
Posts: 91
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 Access an specific memory address exp... COBOL Programming 1
No new posts Sort to extract lines DFSORT/ICETOOL 8
This topic is locked: you cannot edit posts or make replies. REXX to find /* Define and write the ... CLIST & REXX 5
No new posts Remove commas from specific positions... DFSORT/ICETOOL 10
No new posts Extract 2 more lines below line that ... DFSORT/ICETOOL 2
Search our Forums:

Back to Top