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

describe the difference between the dowxx and douxx operations?

1180


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7042


What is the draw back of Procedures? why we are going to Modules?

1230


how many printer files can be defined in f specs ?

971


what is a non-join logical file?

979






Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?

613


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

1720


how to get the cursor position?

718


what is sflrolval?

652


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...

1917


what is the command used to invoke rlu ?

1177


what is the purpose of indicators in rpg?

1098


what is service program?

603


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

1147


What is file information data structure(infds) in as400?

973