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
how do you use commitment control in rpg program ?
what is a keyed physical file?
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...
what are the different commands used in rlu ?
what is the disadvantage of using global variable?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
can we define multi-dimensional arrays in rpg ?
how many files, printer files you can describe in a rpg?
What is %CHECK?
What Is Ddm ?
A join logical file has how many record formats?
Difference between NOPASS & OMIT?
Difference Between Interactive & Batch Job?
what are dds required for subfile?
can error messages as a result of a comp, range or values keyword be overridden?