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 / karthik

FIRST Thing is "%TRIM" is valid only for


CHARACTER type variables...


so here your variable is DECIMAL... so while COMPILATION TIME ERROR OCCURS....

MSG: The parameter for %trim is not valid..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when are the unique constraints executed?

673


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

1714


how does the runqry show the output?

877


which single rpg opcode performs both setll and reade?

1089


what is the syntax for plist?

640






what is xfoot opcode ?

1046


what is the maximum number of subfiles that can specified in a display file ?

1041


how to write *pssr ?

634


Can we debug the MSGW JOBS?

927


how many types of display are available on as/400 for user interaction?

627


what is the length of a variable in rpg?

959


How can we update a specific field in RPG?

925


How to add 99 menu (page down) option in menu creation..

1919


how many maximum spaces could be given in o specs?

631


how can I start a page in a new window?

779