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


Please Help Members By Posting Answers For Below Questions

Write a logic program for knowing the repeated number of a vowels in a given program?

3553


what is overlay?

932


how to read database records without locking them?

1532


How can we arrange duplicate records in a file?

841


which are the query selection criteria, which can be given in a query?

931


what is the favicon.ico request that my site receives now and then?

899


what is a logical file?

1365


What is %CHECK?

1069


Hi,Please give me the the answer for these quesitons? 1.what is IFS and ICF and RAPE amd DISKET fils? explain with example please? 2.What is the difference between POST AND SPACE OPCODES? 3.Can anybody tell me default printerfile command and object type?

2378


In RPG How to read a records from a file without using read opcodes?

1325


how do you read changed records backward in subfile?

861


how to develop some simple graphs (bar charts) using just html?

885


define the purpose of the leave operation?

1293


how will you find a string using pdm?

948


What is file access opcodes?

1071