2008 Apr 09 9:36 AM
Hi,
Data: Char type c value '2008'.
I want to take only 08 from 2008.
Can you please tel me the logic for this result?
thanks
sekhar
2008 Apr 09 9:41 AM
hi Chendra,
use this code:
Char = Char+2(2).
2008 Apr 09 9:41 AM
2008 Apr 09 9:42 AM
Data: Char(4) type c value '2008'.
char+2(2)
award points if this helps you
james lising
2008 Apr 09 9:43 AM
try this
Data: Char(10) value '2008'.
data : str1(3) ,
str2(4).
SPLIT char at '20' INTO: str1 str2.
write : str1 , str2.
reward if helpful
2008 Apr 09 9:46 AM
Hello Sekhar-
If the data in result variable is 2008 and your requirement is pull last 2 chars.
data:v_re(2) type C.
v_re = result+2(2).
Cheers,
~Srini...
2008 Apr 09 9:46 AM
Hi Chandra,
First i want to make clear to you that char contains only 2 instead of 2008. because by default if you declare type c means it contains only one character.
so how can you take out 08 from 2008.
Hope now its clear .
Please Reward.
Amit.
2008 Apr 09 9:49 AM
Hi,
You can refer in my first answer about your question.
reward points.
james
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |