View previous topic :: View next topic
|
Author |
Message |
iamsubbarao
New User
Joined: 19 Apr 2006 Posts: 1
|
|
|
|
Hi
I am using IBM cobol. In one of my report I need to print couple of lines as bold. Please help me how to print bold letters in between the report.
Thanks in advance for help in this matter.
Subba. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You need to repeat the lines where the data needs to be bolded, using a print-no-advance option. This will cause the print head of the printer to print the text from left-to-right, then, instead of advancing the paper to the next print line, will instead move the print head back to the beginning, and it will print the same line over. Whereever the text is duplicated, the printer will be "overstriking" that text, thereby rendering the text bold.
For example, let's say I'm creating a couple of print lines in an output dataset defined as RECFM=FBA, LRECL=133:
Code: |
1THIS IS THE NORMAL TEXT. THIS IS BOLDED.
+ BOLDED.
0THIS NEXT LINE IS NORMAL.
0THIS WHOLE LINE IS EXTRA-BOLDED.
+THIS WHOLE LINE IS EXTRA-BOLDED.
+THIS WHOLE LINE IS EXTRA-BOLDED.
|
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Of course, if the output device is a laser printer or an APA-type page printer or a PCL-type printer, then the method used might be quite different. |
|
Back to top |
|
|
|