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

how do you use commitment control in rpg program ?

1277


what is a keyed physical file?

1001


The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...

1915


what are the different commands used in rlu ?

1452


what is the disadvantage of using global variable?

688






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

608


can we define multi-dimensional arrays in rpg ?

931


how many files, printer files you can describe in a rpg?

632


What is %CHECK?

841


What Is Ddm ?

1033


A join logical file has how many record formats?

599


Difference between NOPASS & OMIT?

1187


Difference Between Interactive & Batch Job?

791


what are dds required for subfile?

582


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

1129