What would be the output of the variable result?
D RESULT S 5S O INZ(00011)
C EVAL RESULT = %TRIM(RESULT)
Please give me the correct answer for this
A.0001
b.compile time error
c.11
d.Runtime error
Answer Posted / karthik
FIRST Thing is "%TRIM" is valid only for
CHARACTER type variables...
so here your variable is DECIMAL... so while COMPILATION TIME ERROR OCCURS....
MSG: The parameter for %trim is not valid..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is the difference between sflclr and sflinz?
what would be the effect on the field where reverse image, underline and highlight display attributes are active ?
how can you specify no duplicate key?
is it possible to create a physical file without dds?
maximum number of subfiles that can be active for a single file is?
define the purpose of the iter operation?
if we tried to move year part of *iso date into a field of length 3, what will happen ?
what is the favicon.ico request that my site receives now and then?
which single rpg opcode performs both setll and reade?
when do you use f-spec. Continuation line ?
what is overlay?
what are the limitations of cl (compare to rpg) ?
how can you check for a records existence without causing and i/o (chain/read)?
what are dds required for subfile?
what are the two record formats a subfile contain ?