View previous topic :: View next topic
|
Author |
Message |
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
hai. i need to find the length of an identifier. i've known about the intrinsic length command. how to use it and what is the syntax?
gowtham |
|
Back to top |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
there are two syntex
1. FUNCTION LENGTH(var_data_field)
2. LENGTH OF((var_data_field))
For arithmatic expression you can use only 'FUNCTION LENGTH'.
for alphanumeric/natioional charecters we can use LENGTH OF. |
|
Back to top |
|
|
gowtham_srgp
New User
Joined: 09 Jun 2005 Posts: 38
|
|
|
|
shivashunmugam Muthu wrote: |
there are two syntex
1. FUNCTION LENGTH(var_data_field)
2. LENGTH OF((var_data_field))
For arithmatic expression you can use only 'FUNCTION LENGTH'.
for alphanumeric/natioional charecters we can use LENGTH OF. |
hai shivashanmugam Muthu. can you code an example to show this? do we need to use any compute statements to trap the values to the identifier?
gowtham |
|
Back to top |
|
|
shivashunmugam Muthu
Active User
Joined: 22 Jul 2005 Posts: 114 Location: Chennai
|
|
|
|
there is no arithmatic expressions involved...
<New_variable> = LENGTH OF <VARIABLE>
New variable is the filed where the length of your existing variable to be populated... |
|
Back to top |
|
|
|