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 / anand
Answer is "b" - %Trim are used blanks at edges for the string.
And also you have to define 0(*zero) instead of 'O' as you
defined in D spec for zoned decimal.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
how can we run a batch job?
what are the important factors in error message subfile ?
What is diff between EVAL & MOVE?
define the rcvf command?
which are the member types which seu supports?
What is array in as400? What are the types of array?
what is a physical file?
how to write code for singlepage in sqlrpgle with update ?
what is the disadvantage of using global variable?
using dfu, user will be able to ___________ from physical file?
what is the necessary keyword for non-join logical file?
what are the different types of data areas?
what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?