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

how to define global parameter in ile ?

633


what is the function of crtdupobj command?

1161


How to convert a spool file to PDF file in AS400?

741


what is the purpose of ovrdta (override data) keyword?

1075


What are the types of data structure in as400?

543






what is the purpose of dynslt keyword?

1039


what is the maximum number of subroutines allowed in rpg?

1065


How to avoid using indicators in ile ?

773


What is RETURN CURSER LOCATION in subfile?

1074


is there any way to dynamically merge other html scripts into a given html?

602


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

2181


A join logical file has how many record formats?

603


how do you read changed records backward in subfile?

617


what is the purpose of putovr (put with explicit override) keyword?

936


during input operation which indicator position is seton if there is a record lock?

930