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

Mr.Sidc sirfor my question{how to convert date format from one format to another i think in CL/400 its CVTDAT,Please tell in RPG/400 sir not in RPGILE} you have answered using MOVE opcode,can you illustrate me with a small example sir very kind of you.

1 Answers   CTS, IBM, iGate,


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

2 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


How would display prime numbers using CL program?

0 Answers   Hexaware,


Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.

1 Answers   Voltech,






why subproc not run in dftactgrp?????/plz explain

2 Answers   CSC,


1.How you will find the program is batch or online in cl pgm? 2.How you will end the batch pgm when the job runs? write an logic? 3.In wich command the option *drop is used?

2 Answers   TCS,


which program rpg or cl is efficent to update a transaction onto a database file and why ?

0 Answers   IBM,


if there is pf in two libraries and there is a logical file based on the PF, how to find the pf on which the pf is based.

2 Answers   TCS,


When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?

0 Answers  


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

2 Answers  


We have a Physical file, after reading 5 records,it has to read LF of that same Physical file,Will it start reading from Ist record or will start reading from 5th record?

5 Answers   Hexaware,


Categories