× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



FYI, I have copied spool files where I had used highlighting, using the
command:
CPYSPLF FILE(&SPLF) TOFILE(&MYFILE) CTLCHAR(*PRTCTL),

...and noticed that it results in printing the same value again on the
next line with SPACEA(0). That's how we used to do it anyway in the more
primitive days. :-)

So the simplest solution in my opinion and what I would do is thusly:

(First) Define the data structure for the output like Jon suggested,
with all 100-plus fields defined as in the actual output line with
proper start-end positions, or with proper StartPsn values for
OVERLAY(PrintLineDS:StartPsn). ....Give those fields names unique to
the print line data structure.

(Second) When you print the line, move all the values into place and
print the line, with SPACEA(0).

(Third) Clear the data structure and then move the highlighted (only)
values into place in the print fields, and print again.

For example:

D PrintLine DS 132
D PCust# 8 S 0 overlay( PrintLine : 14 )
D PCuName 50 A overlay( PrintLine : 24 )
D PCuSts 5 A overlay( PrintLine :
80 )

// Ready to print...
Clear PrintLine ;
PCust# = Cust# ;
PCuName = CuName ;
PCuSts = CuSts ;
Write PrintRecord ;
///// Or, if it's program-described, Write PrintFile
Printline ;
Clear PrintLine ;
// Highlight selected fields....
PCuSts = CuSts ;
Write PrintRecord ;
///// Or, if it's program-described, Write PrintFile
Printline ;

Write BlankLine ; // To do the spacing...


--Alan


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.