Greetings!

What do you wish to do with the blanks? How do you want the information to
look when you are done with the process?

You can INSPECT the filed replaceing the blanks with a specific character,
like zeros.  Thus the '07bb' becomes '0700'.

You can create a 4 position array, Move the field to the array, process
the field backwards (starting with 4 and going to 1) and when you have
good characters (> blanks), move them to a character field that would be
redefined as a number: put the 7 in the right most position, followed by
the zero, then fill the rest with zeros.   Thus the '07bb' becomes '0070'

You can move the field using reference modification:

Move Field-Name(1:2) to Two-Length-Field

Thus the '07bb' becomes '07' in a new field.

HTH -

Jim Essinger
Senior Programmer/Analyst
Student Loan Fund of Idaho
esinger@fmtc.com

>
> This is a multi-part message in MIME format.
> --
> Hi
>
> I have variable of character data type of length 4. It has a value of
> '07bb' where b denoted blanks. I want to remove the trailing blanks.
> Please help me in getting this done in a easier approach.
>
>
> Thanks & Regards
> Sivasubrahmanian. A
> Project Engineer
> Wipro Technologies (Finance & Insurance)
> Electronics City, Bangalore, India
> Phone - 8520408/8520416 x - 4364.
>
>
> --
> 
>**************************Disclaimer**************************************************
>
>  Information contained in this E-MAIL being proprietary to Wipro Limited
> is 'privileged'
> and 'confidential' and intended for use only by the individual or entity
> to which it is addressed. You are notified that any use, copying or
> dissemination of the information contained in the E-MAIL in any manner
> whatsoever is strictly prohibited.
>
> 
>****************************************************************************************
>





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.