‎2008 Aug 26 11:33 PM
Hi,
Can you please clarify.
DATA: val_persg(1) type c.
clear val_persg.
write val_persg.
What willl be the output. It will be empty string and empty string with one space.
Similarly,
DATA:
flag_persg type boolean.
clear flag_persg.
write flag_persg.
Output will be true or false or someother.Please clarify.
‎2008 Aug 27 12:21 AM
In both cases the output will be a single blank.
For flag - it is 'X' if it is true and blank if it is false.
‎2008 Aug 27 2:49 AM
Hello,
Ouput will be single space.
Please confirm yourself by writing code and executing.
Thanx. Praveen
‎2008 Aug 27 6:20 AM
Hi Deepan .,
It will be blank space in both the cases.
thanks
sreenivas
‎2008 Aug 27 6:31 AM
Hi,
DATA: val_persg(1) type c.
DATA: flag_persg type boolean.
clear val_persg.
write val_persg.
clear flag_persg.
write flag_persg.
obviously the output is blank.
thanx.
‎2008 Aug 27 6:55 AM
Hi,
In both the cases clearing wont effect the intial value of the boolean and Character.
The character will have a space as a default value and the boolean will remain as false only..
If you try to write the intial value of a character and a boolean you will get blank only.
Regards,
Amit.
Edited by: AMIT BISHT on Aug 27, 2008 7:56 AM
‎2008 Aug 27 7:00 AM
Hi...
In both cases the output will blank ....
It is not like that length of the character field is one that's why it will be single blank.Only the thing is that it is blank means nothing no single blank..