‎2008 Apr 16 11:25 AM
im always confused when it comes to string and offset and length
what is means when we write 2(4)
or text+2(4)
any sample code will helpful
help will be appreciated
‎2008 Apr 16 11:36 AM
hi check this ...
data: test(18) type c value 'this is for test'.
write:/ test+0(4).
write:/ test+5(2) .
write:/ test+8(3) .
write:/ test+12(4) .
regards,
venkat.
‎2008 Apr 16 11:31 AM
+2 is the offset and 4 is the length. But reading the header is seems you know this. so what exactly is your problem?
‎2008 Apr 16 11:36 AM
hi check this ...
data: test(18) type c value 'this is for test'.
write:/ test+0(4).
write:/ test+5(2) .
write:/ test+8(3) .
write:/ test+12(4) .
regards,
venkat.
‎2008 Apr 16 11:39 AM
REPORT ZTEST_OFFSET.
data: text(10).
text = 'this is test'.
write 2(4) 'Test'. "this will start from second charcter position, and writes up to 4 chars length.
write:/ text+2(4) . "this will start from the position 1, and writes only 4 chars starting from position 2 in the string.
‎2008 Apr 16 11:40 AM
Hi,
By using text2(4), it will print the values starting from 2 position to 4 characters. EX: if you have string SAPSDN it will print PSDN using write : text2(4).
Thanks,
Sriram Ponna.