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

How many program bind in one module....

0 Answers  


In ProgramB there is a SBMJOB, which is a call to program C .There is also a CALL to program D from B. How would you check the program C has been executed in D?

4 Answers  


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...?

0 Answers  


1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,


What is journalling and commitment control?

3 Answers   IBM,






what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


why we do STRSRVJOB in batch debugging in as400

1 Answers  


Delete FileName at first statement in RPG.

1 Answers  


A pgm subroutine calling child subroutine, that child subroutine again calling parent subroutine, u have 1000 lines of code, with out debugging , how can u find that error??? Is there any command to find errors in pgm???

3 Answers   HSBC,


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  


do you use message subfiles? What are the necessary keywords required coding a message subfile?

0 Answers   IBM,


Mr.Yallamanda Reddy P thanks for your answer sir,can we use test(D) opcode in RPG/400,if yes please help me by eloborating on that answer by writing a sample code for that sir

2 Answers   iGate,


Categories