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
the maximum number of subfiles that can be active for a single file is ____ .
In RPG How to read a records from a file without using read opcodes?
how can you specify no duplicate key?
what are different record spacing keywords in rlu ?
what is the use of sflend keyword?
how many printer files maximum can be used in single rpg program?
can a indexed file be accessed in arrival sequence in rpg program?
what keyword must be used with protect keyword ?
what is a keyed physical file?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
what is term cua , saa?
Which command is used to replace CDUP command in FTP IF i WANT TO USE SFTP?
difference between sflrcdnbr and sflnxtchg?
what is procedure prototype and procedure interface.
Difference Between Ca & Cf?