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 |
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...?
suppose there are 100 records and i want to read records between 60-70 how we can read this 10 records in rpg
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.
what are the array operations?
Can anybody tell me that why we use option(*nodebugio)in H- Spec?
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?
How can we receive values from a called procedure in RPG?
What is a record lock error?
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????
what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code
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.
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.