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



Yes .. Really !!
Even -
        if testchar < ' ' ( x'40' is hex value for blank )
worked out.

Thanks to all ..

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of
dkahn@xxxxxxxxxxxxxxxxx
Sent: Monday, August 22, 2005 10:52 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Checking for field with Garbage Value in RPG.






"Gauri Kulkarni" <gauri.kulkarni@xxxxxxxxx> wrote:

> The major problem I faced was comparing the "Hexadecimal Value
> of a character" with X'40. I had to use my own conversion logic
> to get the things done.
> Is there any simple way by which I can convert the Char to Hex
> and will be able to do the comparison operation as well?

Gauri,

You don't need to convert the character. Simply compare it with a hex
constant, eg:

      if testChar < x'40';

--
Dave...
               _________  ,___o
             __________   _\ <;_        http://www.audax.uk.net
           ___________   (_)/ (_)       http://www.twickenhamcc.co.uk
=======================================================
The opinions expressed in this communication are my own and do not
necessarily reflect those of my employer.


______________________________________________________________________
This message may contain confidential information which may also be legally
privileged and is intended only for the use of the parties to whom it is
addressed. If you are not an intended recipient you are hereby notified that
any disclosure, copying, distribution or use of any information in this
e-mail is strictly prohibited. If you receive this message in error please
notify the sender by return e-mail and then destroy it. Further, we make
every endeavour to keep our network free from viruses. However, you do need
to verify that this e-mail and any attachments are free of viruses as we can
take no responsibility for any computer viruses which might be transferred
by way of this e-mail. All information and attachments remain the property
of Stolt Offshore Group and should be held as confidential.
--
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.



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@xxxxxxxxx and delete this mail. 
_____________________________________________________________________

As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.