View previous topic :: View next topic |
Author |
Message |
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Tue Jul 25, 2006 12:18 pm Post subject: Validating a Field in CLIST |
|
|
Hi Everyone,
Please help me on this , I am validating a field for special character
when -,*,+ is encountered the length function which I am using is
failling.
&tr = uuu*
&j = &length(&tr)
I tried using &sysclength it is also failing. Please let me know how do I
handle *,-,+ .
Please help.
Thanks
Raj |
|
Back to top |
|
|
Bill Dennis Advanced
Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Tue Jul 25, 2006 12:39 pm Post subject: |
|
|
Try using it as a string:
&j = &length(&str(&tr)) _________________ Regards,
Bill Dennis
Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity. |
|
Back to top |
|
|
Rajkannan Beginner
Joined: 02 Jun 2004 Posts: 64 Topics: 31
|
Posted: Tue Jul 25, 2006 1:04 pm Post subject: Validating for & |
|
|
Hi ,
Thanks for the reply.
&t = abc*
&j = &length(&nrstr(&t))
This code worked .
but it is failling for &
&t = abc&
&j= &length(&nrstr(&t))
it failing saying symbolic valiable used in length function since & is part
of the string . |
|
Back to top |
|
|
|
|