Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Shift statement

Former Member
0 Likes
819

Hi all,

I am using a field of 4 char length..in the o/p i want to remove the first letter from the field and print only 3 character...for eg: zname = CHAT...the o/p should be only HAT removing the first character..

pls help

Thx

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
749

Use

SHIFT ZNAME LEFT .

OR

SHIFT ZNAME.

Regards,

Suruchi

Message was edited by:

Suruchi Mahajan

6 REPLIES 6
Read only

amit_khare
Active Contributor
0 Likes
749

v_char = 'CHAT'.

n = strlen (v_chat).

v_char1 = v_char+1(n).

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
749

Hi,

data: variable type char20 value 'adfasfasdfasd'.

write variable +1(19) .

reward points if helpful.

regards,

venkatesh

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
749

Hi,

You can use like this.

DATAL char4(4) type c value 'CHAT'.

write: char4+1(3).

Regards,

Sesh

Read only

0 Likes
749

hi,

SHIFT zname BY 1 PLACES.

regards,

santosh.

Read only

Former Member
0 Likes
750

Use

SHIFT ZNAME LEFT .

OR

SHIFT ZNAME.

Regards,

Suruchi

Message was edited by:

Suruchi Mahajan

Read only

0 Likes
749

Use

zname+1(3) to zname1.

Thanks..