help_me Beginner
Joined: 03 Oct 2003 Posts: 11 Topics: 4
|
Posted: Tue Nov 11, 2003 2:18 pm Post subject: |
|
|
For calculatin the exact length of Varchar varible, you can do like below
EXEC SQL
SET :WS-LEN-var-char = LENGTH(STRIP(:varchar))
END-EXEC.
05 WS-LEN-VAR-CHAR PIC S9(4) COMP.
Hope this helps
Rgds
Srinivas |
|