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

the maximum number of subfiles that can be active for a single file is ____ .

1466


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

1264


how can you specify no duplicate key?

913


what are different record spacing keywords in rlu ?

1545


what is the use of sflend keyword?

1351


how many printer files maximum can be used in single rpg program?

896


can a indexed file be accessed in arrival sequence in rpg program?

1243


what keyword must be used with protect keyword ?

1419


what is a keyed physical file?

1336


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

805


what is term cua , saa?

1226


Which command is used to replace CDUP command in FTP IF i WANT TO USE SFTP?

2027


difference between sflrcdnbr and sflnxtchg?

893


what is procedure prototype and procedure interface.

841


Difference Between Ca & Cf?

864