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
describe the difference between the dowxx and douxx operations?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
What is the draw back of Procedures? why we are going to Modules?
how many printer files can be defined in f specs ?
what is a non-join logical file?
Why we have multiple data types in As400 and why we use numeric, packed, decimal, zoned the basic difference between this?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
how to get the cursor position?
what is sflrolval?
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 is the command used to invoke rlu ?
what is the purpose of indicators in rpg?
what is service program?
What is the maximum number of subfiles that can be specified in a display file?
What is file information data structure(infds) in as400?