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
when are the unique constraints executed?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
how does the runqry show the output?
which single rpg opcode performs both setll and reade?
what is the syntax for plist?
what is xfoot opcode ?
what is the maximum number of subfiles that can specified in a display file ?
how to write *pssr ?
Can we debug the MSGW JOBS?
how many types of display are available on as/400 for user interaction?
what is the length of a variable in rpg?
How can we update a specific field in RPG?
How to add 99 menu (page down) option in menu creation..
how many maximum spaces could be given in o specs?
how can I start a page in a new window?