What are the values of NUM1 and NUM2 after executing the
following code?
CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq
C MOVE *LOVAL NUM1 50
C MOVE *J-fIVAL NtJM2 52
Answer Posted / manish verma
The correct question should be:--
CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2+÷+ResultLenDHHiLoEq
C MOVE *LOVAL NUM1 50
C MOVE *HIVAL NUM2 52
and the answer will be
num1= -99999
num2= 999.99
Conclusion is that whatever the size of the variable that
much 9's will be filled with (-)ve value for loval and
wuith (+)ve value for hival.
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
how do I preserve and clean the array?
What is the difference between copybooks and subprocedures in as400?
If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?
1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?
how do I declare a minor?
how do I play {insert rpg system here}?
Explain mdt?
How Chain operation copies the record's data to the input buffer for the program?
how does the rpg element work?
what is kids-rpg?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
How can we override a file during runtime in rpg?
How to call one program from another program in RPG? please help me with the code