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

what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.

1 Answers   Voltech,


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

0 Answers  


how we retrieve records without using key field (ex:name) from Physical File through RPG in as/400?

8 Answers  


how we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .

2 Answers  






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,


while i am using the dspmsg command on comman line in Mocha am getting error like Not authorized to message queue message my messagequeue Name? can anybody help me how to change my message queue Am anable to see my messages in message queue

1 Answers  


how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.

4 Answers   iSoft, Wipro,


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


How to identify the object has compiled with the debug view as *source without using STRDBG?

6 Answers  


what is file information data structure?

1 Answers   IBM,


What are the necessary keywords required to code a message subfile?

3 Answers  


Categories