Skip to Content
0
Feb 13, 2008 at 01:31 PM

SHIFT statement

16 Views

Hi,

I have a string value like this. /usr/sap/temp/test.txt .

I want the text before the last slash / .

I mean, I want /usr/sap/temp into one variable.

There can be any number of slash / symbols in the main text. But, I need only the text before the last slash /. I think, we have to use SHIFT statement to do this. But, I am not able to get it. Can someone help me on the same. it is quite urgent. Please share your thoughts.

Thanks & Regards,

Paddu.

Edited by: Paddu K on Feb 13, 2008 7:45 PM