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

describe the difference between the dowxx and douxx operations?

1727


what are the different commands used in rlu ?

1933


what are members?

827


Difference Between Source Physical File & Physical File?

875


how can you execute a command from within an rpg program without calling a clp program?

1569


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1361


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

2835


what is the purpose of the indara keyword?

1407


how do you read changed records backward in subfile?

843


What is binder language ?

1670


what is sflpag and sflsiz ?

2856


what is the maximum number of parameters allowed in rpg?

1389


what is sflrolval?

856


How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?

949


in which specification the report layout can be defined?

1304