‎2007 Feb 14 1:31 PM
data: ldf_data1(5) type c,
ldf_data2(5) type c.
the ldf_data2 will be send to the xi,
my requirement is the date of ldf_data2 should be right-aligned.
Any advice will be appriated.
I used the SHIFT command. sometimes error happened
for example
ldf_data1 is 9.999
ldf_data2 = ldf_data1.
shift ldf_data2 right.
result is 9.99, the rightest will be cut
any other way to realize the function.
‎2007 Feb 14 1:33 PM
‎2007 Feb 14 1:35 PM
shift <var> right deleting trailing ' ' .
this will right justify it
Raja
‎2007 Feb 14 1:36 PM
try this....
ldf_data1 is 9.999
WRITE ldf_data1 TO ldf_data2 RIGHT-JUSTIFIED.
Message was edited by:
Chandrasekhar Jagarlamudi
‎2007 Feb 14 1:36 PM
Hi,
Please try this.
...
WRITE ldf_data2 TO ldf_data2 RIGHT-JUSTIFIED.
...
Regards,
Ferry Lianto
‎2007 Feb 14 1:47 PM
Hi ,
1. If ldf_data1 is 9.999 and you want to move it to ldf_data2, do this way...
WRITE ldf_data1TO ldf_data2 RIGHT-JUSTIFIED.
This will move the data from ldf_data1 to ldf_data2 with right justified.
2. If you want to display the value use the following statement.
WRITE : ldf_data2 RIGHT-JUSTIFIED.
Regards,
Jayaram...
‎2007 Feb 14 2:10 PM
‎2007 Feb 15 1:47 AM