MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printing in bold through cobol

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
patnekar
Beginner


Joined: 27 Jan 2003
Posts: 41
Topics: 16

PostPosted: Thu Dec 18, 2003 3:49 pm    Post subject: Printing in bold through cobol Reply with quote

Hi,
My requirement is that I need to print certain information on paper. This information processed through a COBOL program and then sent to the printer.
I need to highlight certain lines in that information in bold. Could someone please help me out, as to how to go about doing this??

Thanks
Puru
Back to top
View user's profile Send private message Yahoo Messenger
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Thu Dec 18, 2003 4:05 pm    Post subject: Reply with quote

The only thing that I can think of is to use the '+' carriage control which causes the printer to over-type. You would then have to print the same text twice.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12368
Topics: 75
Location: San Jose

PostPosted: Thu Dec 18, 2003 5:09 pm    Post subject: Reply with quote

patnekar,

Another option is AFP.AFP(Advanced Function Presentation) is a set of IBM licensed programs, together with user applications, that use the all-points-addressable concept to print on presentation devices. AFP includes creating,formatting, archiving, retrieving, viewing, distributing,and printing information.

If your shop has AFP then you can print in Bold, as it allows you select fonts for fields.

Check this link for manual link on AFP

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/FINDBOOK?filter=AFP

Hope this helps...

cheers

kolusu
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
patnekar
Beginner


Joined: 27 Jan 2003
Posts: 41
Topics: 16

PostPosted: Thu Dec 18, 2003 5:10 pm    Post subject: Reply with quote

Thank you Kolusu and Bithead.
Back to top
View user's profile Send private message Yahoo Messenger
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu Dec 18, 2003 11:53 pm    Post subject: Reply with quote

AIR, Bihead's approach will not work if the print data is SPOOLed. If you're printing directly to a print device, it should be OK.

Regards, Jack.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Jan 22, 2004 3:14 pm    Post subject: Reply with quote

Puru, the "print/overstrike" carriage control '+', as stated earlier, will work to bold a print line, whether the printer is impact or is AFP controlled.

On the impact printer, a '+' carriage control, which essentially supresses the line-feed, will cause the print head to print the line, and then print over the same line, before advancing to the next print line.

On the AFP or other non-impact printer, the '+' will cause the printer to substitute a bold font for the existing standard font in use, also causing the bold line to print.

For advanced ADP and XEROX printers, there is a reserved print position, usually defined as the second byte of the output, immediately following the carriage-control, that is known as a TRC (Table Reference Character) byte. The TRC allows the programmer to select a font typeface from a table by inserting an appropriate reference character (0-F) within the print data. You must know the format of the TRC table font typeface assignments to use the TRC.
Back to top
View user's profile Send private message
Mike Chantrey
Intermediate


Joined: 10 Sep 2003
Posts: 234
Topics: 1
Location: Wansford

PostPosted: Tue Jan 27, 2004 5:45 am    Post subject: Reply with quote

Quote:
Puru, the "print/overstrike" carriage control '+', as stated earlier, will work to bold a print line, whether the printer is impact or is AFP controlled.


It doesn't work on any of our non-impact, non-AFP laser printers. The carriage return supression works, and if you overprint two different strings they appear overlaid. But if you overprint the same string to try to get bold you just get normal print. The only way I've been able to get bold on these printers is by sending the printer escape sequence (preceded by a special 'do not translate to ASCII' character). But this is not good since it is printer specific, and it doesn't work with JES prints since JES strips out the escape sequence for some reason (works from CICS OK).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group