pls anyone explain about compile time array,pre run time
array run time array

Answers were Sorted based on User's Feedback



pls anyone explain about compile time array,pre run time array run time array..

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

pls anyone explain about compile time array,pre run time array run time array..

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

pls anyone explain about compile time array,pre run time array run time array..

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

pls anyone explain about compile time array,pre run time array run time array..

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

Post New Answer

More DB400 Interview Questions

How to read a pf in reverse(from last record to first) using cl?

0 Answers  


wirte a simple program for read file in cl

2 Answers   Active Brains,


hi iam very new to as400. i had created one physical file can any one tell command to enter data in to that

9 Answers   Encore,


YOU CAN DELETE THE RECORD SPACE PERMENANTLY IN PHYSICALFILE THROUGH CL?

4 Answers  


Suppose I have a pf, it contains 5 members, how to access particular member data from logical file? What is the use of member in pf?

0 Answers  


I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?

0 Answers  


how to see number of logical files depending on a pf?...can we declare more than 20 logical files from a single pf? is it possible

4 Answers   ocbc,


I have a PF with out any data but the dependent LF is having data?

1 Answers   HCL,


Suppose if a physical file is having 1000 records, but i deleted 500 records from it. Here the concern is can the size of the file changes or it remains the same... kindly help me out with thorough xplanation.... Thanks in-advance...

6 Answers   ABC, TCS,


What is open data path?

0 Answers  


what is dynslt and why we use that command when do we use command

2 Answers   Active Brains, UHG,


How to read a PF in reverse(from last rec to first) using CL?

3 Answers   HCL,


Categories