|
I'll only rant once about this thread, I promise. Muthu - No offense intended, but:You're probably under 25 years of age, and you work for one of Asia's largest conglomerates ( http://www.tcs.com/0_about_us/aboutus/BusinessOverview.htm ).
Most of us old-timers know (unfortunately) way too much about printer escape codes from having to work on this stuff in the 80's, when PC printers were first being connected to IBM midrange systems. I'd follow Scott's suggestion...after all, you ARE a consulting firm, and you can probably get more billable time by doing it RIGHT by converting to externally-defined printer files.
If your project was priced on a fixed bid on this project, being a CMM Level 5 company doesn't help you much in this situation, does it? Your bid should have been to REWRITE the code to current AS/400 - iSeries standards, instead of simply migrating System/36-style code over to a new system.
Since Tata is one of the largest computer consulting companies in the world - I would think that you should have highly experienced INTERNAL resources at your disposal, among the over 28,000 other Tata consultants, that could help you with your programming problems.
After all, American workers are continually being told here in the United States by the media, Congress, high-tech companies like Microsoft and Intel, and the high-tech lobbyists (like the ITAA) that Indian consultants are smarter and more highly motivated than us.
However, WE all know the REAL reason - you are cheaper labor, and as the old saying goes: "You Get What You Pay For!". If your client wants it done cheaply, it will probably be an inferior product.
Best Regards, Steve Landess Austin, Texas (512) 423-0935----- Original Message ----- From: <muthathal.ramasamy@xxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx> Sent: Thursday, December 29, 2005 8:32 PMSubject: Re: Need some help related to special characters in O-specifications
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:NT00002A76Notice: 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 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.