Skip to Content
author's profile photo Former Member
Former Member

TRUNCATE PROBLEM

HI FRIENDS,

CAN ANY ONE TELL ,

FROM WHICH FUNCTI0N MODULE WE CAN TRUNCATE .

INPUT - > ABCDEFGH

OUTPUT - > ABCDE

IT'S URGENT,

PLZ. HELP ME

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 10:34 AM

    use...

    shift input by 3 places right.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 10:38 AM

    Hi,

    You can use offset as below

    Data: INPUT(10) TYPE C,

    OUTPUT(5) TYPE C.

    INPUT = 'ABCDEFGH'.

    OUTPUT = INPUT+0(5). " OUTPUT WILL BE 'ABCDE'.

    Reward Points if this helps,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.