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

difference betwen keywords and opcodes

3 Answers  


Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?

1 Answers  


How can we access Interactive job LDA in Batch Job?. and How we can access a file in interactive QTEMP lib in Batch job?.

4 Answers   IBM,


What is the Record Address file. How can we use it in RPG program?

4 Answers  


can anybody explain significance of *loval setll with example code????

3 Answers   HSBC,


ESCAPE message sent by child program can be handled by parent program using which keyword?

2 Answers  


I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?

4 Answers  


When it is desirable to describe files Internally?

0 Answers  


what built in function can be used with SETLL.If you want to check whether the search argument is successful or not? Please give me answer with example?

3 Answers  


wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?

2 Answers   Four soft,


A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?

2 Answers   IBM,


how can we know running job is batch or intractive ? i need all the possibilites.........plz help me

3 Answers   HSBC, IBM,


Categories