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
when are the unique constraints executed?
Difference Between Call & Sbmjob?
What is the maximum number of subfiles that can be specified in a display file?
How can we update a specific field in RPG?
can a join logical file be updated?
which are the relational operators in rpg?
What is %CHECK?
what is the purpose of overrides?
In RPG How to read a records from a file without using read opcodes?
what is procedure prototype and procedure interface.
how can we run a batch job?
what is rpg fixed logic cycle?
can you have multiple key lists for a single file ?
How to reverse the string in rpg
define a output queue?