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 / anand
Answer is "b" - %Trim are used blanks at edges for the string.
And also you have to define 0(*zero) instead of 'O' as you
defined in D spec for zoned decimal.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to define global parameter in ile ?
what is the function of crtdupobj command?
How to convert a spool file to PDF file in AS400?
what is the purpose of ovrdta (override data) keyword?
What are the types of data structure in as400?
what is the purpose of dynslt keyword?
what is the maximum number of subroutines allowed in rpg?
How to avoid using indicators in ile ?
What is RETURN CURSER LOCATION in subfile?
is there any way to dynamically merge other html scripts into a given html?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
A join logical file has how many record formats?
how do you read changed records backward in subfile?
what is the purpose of putovr (put with explicit override) keyword?
during input operation which indicator position is seton if there is a record lock?