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

Values in if condition

Hi Everyone,

I have to display something like this

the var TNAME TYPE

/BIC/ADEO_0100 A ( If it ends with 00)

/BIC/ADEO_0140 N ( IF it ends with 40)

so in my if condition i specified like this

If TNAME = '/BIC/A%00

TYPE = 'A'.

But it does display anything, the usual one '/BIC/A' works but my requirement is as explained. How do I achieve this result. Any help will be of great help.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 13, 2005 at 11:52 PM

    If you are only considering the two values(/bic/adeo_0100 and /bic/adeo_0140) given in your post, you could do something like this.

    data: tname(30) type c value '/bic/adeo_0140'.
    data: type(1) type c.
    if tname cs '00'.
    type = 'A'.
    elseif tname cs '40'.
    type = 'N'.
    Write:/ type.


    Rich Heilman

    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.