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


Please Help Members By Posting Answers For Below Questions

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.

749


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1555


how do I preserve and clean the array?

667


What is the difference between copybooks and subprocedures in as400?

801


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?

611






1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2366


how do I declare a minor?

707


how do I play {insert rpg system here}?

579


Explain mdt?

659


How Chain operation copies the record's data to the input buffer for the program?

1076


how does the rpg element work?

711


what is kids-rpg?

661


which program rpg or cl is efficent to update a transaction onto a database file and why ?

736


How can we override a file during runtime in rpg?

680


How to call one program from another program in RPG? please help me with the code

1252