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

IBM cobol - reoport layout issues


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
iamsubbarao

New User


Joined: 19 Apr 2006
Posts: 1

PostPosted: Wed Apr 19, 2006 11:45 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 20, 2006 1:00 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 20, 2006 1:16 am
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top