× 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.



Thank you Scott for your ideas and thoughts.

The problem here is this is not a fresh code.
It is a code that is being converted from HP3000 RPGII to IBM RPGIII.
So, we need to perform an equivalent function on the iSeries side to
acheive the desired effects.

What are the possible ways to acheive this?
All the printer files are program described.
How can specify the font (or equivalent for any other print escape
sequences) in program described print files?
Thanks in advance for more inputs.

Thanks,
Muthu





Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
12/30/2005 06:23 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: Need some help related to special characters in     O-specifications







> Actually for the above sequence of characters (8U in the
> O-specifications, according to references and manuals, the desired
> result is the font in the print out should be " Roman 8". When we try
> generating the reports by executing these programs, we have these
> special characters appearing in the hard copy (Print out of the spool).

This is a bad idea.  Don't hard-code printer escape codes in your RPG
programs unless you can find absolutely no other way to get the job done.

It's a much better idea to specify the font in the print file, and let the

iSeries or some emulation software translate it to the printer's escape
sequence.

That'll accomplish the following:

a) It'll be much easier to read the code.

b) You'll be able to switch to different printers that speak a different
language without having to re-write your RPG program.

> Need some inputs/suggestions in getting the desired results. It will be
> of great help if we could have a list of all such sequences and their
> interpretation. If possible, alternative methods to acheive the
> requirement. Thanks in advance for the same.

Hmmm... There are thousands of PCL codes.  And there are perhaps a dozen
different versions of PCL.  And many printers have some of their own PCL
codes that aren't part of the PCL specs.  Therefore, it's not really
possible for me to list them all in this message. However, a quick Google
search should turn up some places to get started:

http://www.google.com/search?q=PCL+Technical+Reference

But, again, I really recommend that you don't code the PCL directly.

As for why your particular code prints the escape sequencees instead of
changing the font, that's really difficult to say since I've never seen
your code.
--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


ForwardSourceID:NT00002A76


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information.   If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited.   If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments.  Thank you

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.