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

Answers were Sorted based on User's Feedback



What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷..

Answer / 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

What are the values of NUM1 and NUM2 after executing the following code? CLONO1NO2NO3 Factorl÷÷..

Answer / 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 ?    7 Yes 0 No

Post New Answer

More RPG400 Interview Questions

Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.

1 Answers   CTS, IBM, iGate,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


What is journalling and commitment control?

3 Answers   IBM,


Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?

3 Answers   Steria,


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,






wat is the difference between array and multiple occurence data structure?

4 Answers   Four soft,


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


we hav job which is running as batch. it takes atleast 06hours to complete tht job. bu i wana do tht job with in 3hours.........? so plz post ur answers

8 Answers   Cap Gemini, IBM,


in which journalling which attributes are necessary

2 Answers   CTS,


Anybody know the difference of primary file and full procedural file

4 Answers  


Categories