‎2007 Oct 17 5:54 PM
Hi,
May I know how to get two spaces between 2 and 0 which is shown below.
Input: 5300083542120406I
Requirement: 530008354212 0406I
Regards,
Raja
‎2007 Oct 17 6:11 PM
hi Raja,
or u can try
data: text1(20) value '5300083542120406I',
text2(20).
write: text1+0(12) to text2.
write: text112 to text214.
write: / text2.
Regards
Allan Cristian
‎2007 Oct 17 5:59 PM
field = 5300083542120406I
concatenate field0(12) space space field12(5) into variable.
WRITE variable.
Regards,
Atish
Message was edited by:
Atish Sarda
‎2007 Oct 17 6:04 PM
hi Raja,
try it:
data: text1(20) value '5300083542120406I'.
concatenate text10(12) space text112 into text1 separated by space.
write: text1.
Regards,
Allan Cristian
Message was edited by:
Allan Cristian
‎2007 Oct 17 6:11 PM
See the example one :
REPORT Ztest_ytt.
data num1(10) type c.
*data num_space(2) type x value '09'.
data num_space(2) type c." value '09'.
data num2(20) type c.
data num_final(40) type c.
num1 = '100100100100'.
num2 = '200200200200'.
concatenate num1 num_space num2 into num_final separated by space.
write:/ num_final.
Thanks
Seshu
‎2007 Oct 17 6:11 PM
hi Raja,
or u can try
data: text1(20) value '5300083542120406I',
text2(20).
write: text1+0(12) to text2.
write: text112 to text214.
write: / text2.
Regards
Allan Cristian
‎2007 Oct 17 6:14 PM