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
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 |
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 |
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 |
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.
ESCAPE message sent by child program can be handled by parent program using which keyword?
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
How would display prime numbers using CL program?
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.
why subproc not run in dftactgrp?????/plz explain
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?
which program rpg or cl is efficent to update a transaction onto a database file and why ?
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.
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?
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.
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?