‎2008 Apr 23 1:06 PM
‎2008 Apr 23 1:09 PM
Hi,
Use the following code.
pa0028-exdat = '20080401'.
month = pa0028-exdat+4(2).
REWARD IF USEFUL
‎2008 Apr 23 1:08 PM
‎2008 Apr 23 1:09 PM
‎2008 Apr 23 1:09 PM
Hi,
Use the following code.
pa0028-exdat = '20080401'.
month = pa0028-exdat+4(2).
REWARD IF USEFUL
‎2008 Apr 23 1:10 PM
Hi abhut,
write pa0028-exdat+4(2).
The above means
LEAVE 4 characters &
TAKE 2 characters
regards,
amit m.
‎2008 Apr 23 1:11 PM
‎2008 Apr 23 1:11 PM
‎2008 Apr 23 1:12 PM
data: v_date type d ,
mon(2) type c .
pa0028-exdat = '20080401'.
v_date = pa0028-exdat .
mon = v_date+4(2) .
write:/ mon .
regards,
venkat.
‎2008 Apr 23 1:27 PM
Hi ABHUT,
Use string manupulation for retrieving the month by parsing the date string
Example :
Data : l_date type D,
l_month(02).
l_date = '20080401' .
l_month = l_date+4(2).
Hope this helps.
Thanks,
Greetson
Edited by: Greetson Shunmugasundaram on Apr 23, 2008 2:28 PM