pls anyone explain about compile time array,pre run time
array run time array
Answers were Sorted based on User's Feedback
Answer / swetha p rao
Compile time array is the array which is declared with all
the actual values in the program.using CTDATA
Pre run time array: It is loaded from a column of physical
file
Run time array: values are loaded in the array during
execution time
| Is This Answer Correct ? | 15 Yes | 1 No |
Answer / syam
You define array on "D" Specification you can load data
into a array at compile, with value entered at end of the
program is called = Compile time array.
You define array on "D" Specification you can load data
into a array at compile, with value obtained from a File is
called = Pre-Runtime Array
Arrays can be loaded with valuse during the program
execution this is called = Runtime Array
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / narendra
Compile Time Array:-
Array is defined in the D spec. eg
DArraymonth S 9 A DIM(3) CTDATA PERRCD(1)
Array data is defined in the last. eg
**CTDATA Arraymonth
January
Feburary
March
Pre Run Time Array:-
Array is define in the D Spec.
FROMFILE keyword is defined. eg
DARRAYMONTH S 9 A DIM(12) FROMFILE(MONTHNAME)
Array data is defined in the program described file.
T and F and record length must be defined while defining the
file in the F spec.
FMONTHNAME IT F 15 DISK
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sivakumar y
small correction about pre run time array:
The file used as input must be a sequential program
described file. DURING INITIALIZATION, BUT BEFORE ANY
INPUT, CALCULATION, OR OUTPUT OPERATIONS ARE PROCESSED the
array is loaded with initial values from the file. By
modifying this file, you can alter the array’s initial
values on the next call to the program, WITHOUT RECOMPILING
the program.
| Is This Answer Correct ? | 1 Yes | 1 No |
How many maximum record format a logical file have?
How many libraries can be there in a library list?
In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.
WHAT IS THE DIFFERENCE BETWEEN 'COLHDG' AND 'ALIAS'?
How to index LF by relative record no (RRN)
Q.1 how to implement the commitment control. 2.how to control commitment control from external program.
Maximum how many fields we can create under a record format of PF?
Last statement of any rpg program is lr?
what is the difference between adding keys & constraints into a phisical file
When we use any keyword like FIFO,LIFO, at file level but whenever we check by runqry we couldn't find answer in FIFO,LIFO,FCFO etc so how we check the answer.
Last statement of any RPG pgm is LR?
How to retrieve a physical file after deleting that?