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 a Procedure in RPG?
define what a data area is along with a brief example of what it may be used for?
How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz
describe the difference between the dowxx and douxx operations?
Difference Between Skip Before & Space Before?
what opcode could be used to test an alphanumeric field for all numeric values?
In RPG How to read a records from a file without using read opcodes?
in conjunction with what other keyword must ovrdta and ovrata be used?
What is the Difference between command attention key and command function key ?
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?
what is service program?
when do you use f-spec. Continuation line ?
if we tried to move year part of *iso date into a field of length 3, what will happen ?
How can we read file using curser? how to define a curser?
what does defn do?