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 |
How many program bind in one module....
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?
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...?
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?
What is journalling and commitment control?
what is estimation? and what is the level identifier parameter in PF?
why we do STRSRVJOB in batch debugging in as400
Delete FileName at first statement in RPG.
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???
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.
do you use message subfiles? What are the necessary keywords required coding a message subfile?
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