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

under given circumstances, my cgi should link to another site. How to implement this?

576


how to write *pssr ?

638


which are the member types which seu supports?

805


how will you search an array?

650


when are the unique constraints executed?

682






what is the function of cpyf command?

1001


how can I give more performance to some selected pages?

615


some special characters I key in my html source members show different on my web pages. Why? How can I solve this?

612


how to pick up the changed records every time in a subfile after the first change made ?

1013


what is externally described file ?

935


can error messages as a result of a comp, range or values keyword be overridden?

1129


what is the use of jdftval in join logical file?

1111


list some of the commonly used commands for debugging?

891


http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?

586


how you will find an error which is not in the first page of the subfile without using rolldown key?

561