Q1.How to read the Array?
Q2.How to copy the content of one Array to another Array?
Answer Posted / ravi shankar porwal
1.You can read array by Subscript or index like
Array(1) DSPLY
Array(2) DSPLY
in Calculation Prompt.
2.You can copy the content of one array to another array by
using MOVEA Opcode like
MOVEA Array1 Array2
| Is This Answer Correct ? | 29 Yes | 0 No |
Post New Answer View All Answers
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
What are the types of identifiers?
What is difference between bind by copy and bind by reference?
are there any useful c runtime apis that I can call from rpg iv?
how can I tell when to replace the array?
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.
is this a rpg channel?
how do I preserve and clean the array?
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 is the rpg system?
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.
how do I declare a table or array in rpg iv?
How would display prime numbers using CL program?
what is file information data structure?
How to call one program from another program in RPG? please help me with the code