Q1.How to read the Array?
Q2.How to copy the content of one Array to another Array?

Answers were Sorted based on User's Feedback



Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?..

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

Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?..

Answer / jayaprahu

you can read the array or copy the contents of one array to
another array by using the Subscrpt or index

Is This Answer Correct ?    6 Yes 3 No

Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?..

Answer / sreedhar reddy

LookUp is used to search an element in an Array. MoveA can be used to copy the contents of an Array.

Is This Answer Correct ?    1 Yes 0 No

Q1.How to read the Array? Q2.How to copy the content of one Array to another Array?..

Answer / lmds123q44

Q1
LOKUP / LOOKUP too can be deployed to read an array

Q2
MOVE too could be used to move contents of an array
element by element to corresponding buckets in the target.

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More RPG400 Interview Questions

i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?

1 Answers   IBM,


suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg

2 Answers   Polaris,


Suppose we add one field in physical file and this physical file is used by several programs.how do we know which program is using that file? What are the impact analysis.

6 Answers  


what are the array operations?

1 Answers   IBM,


Can anybody tell me that why we use option(*nodebugio)in H- Spec?

3 Answers  






When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation to return to PGMA. When PGMA call PGMB the second time is the *INZSR executed?

5 Answers   Mphasis,


How can we receive values from a called procedure in RPG?

1 Answers  


What is a record lock error?

0 Answers   Wipro,


Can any one plz explain the concept of INFSR, *PSSR, INFDS AND PSDS, I' confusing about PSDS and *PSSR, Wat is the difference btw them, wat PSDS will do????

1 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

0 Answers   TCS,


How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.

2 Answers  


Categories