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 ? | 7 Yes | 0 No |
Post New Answer View All Answers
what do you mean by an input subfile, what are the keywords required?
What is the purpose of record level identifier?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
what is the necessary keyword needed to scroll subfile records?
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.
what happens when sflsiz = sflpag? What are the advantages and disadvantages?
Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.
Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg
What is ment by record level identifier?
are there any useful c runtime apis that I can call from rpg iv?
What is difference between bind by copy and bind by reference?
What is the difference between copybooks and subprocedures in as400?
write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen