Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 know the perticular record in pf with out reading?

2 Answers   Cap Gemini,


what is the difference between adding keys & constraints into a phisical file

6 Answers   HSBC,


Can we concatenate fields in physical file? If yes how can we do?

0 Answers  


How to update physical file using logical file with example?

0 Answers  


How can we know that a trigger has been added on a PF? and what is the purpose of adding a trigger?

3 Answers  


What is the difference between access path and open data path?

0 Answers  


What is the interactive job?

0 Answers  


what is open data path? and what is the diff b/w access path and open data path?

3 Answers   Cap Gemini,


What is the batch job?

0 Answers  


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.

2 Answers  


How to insert more than one record to a pf at a time?(Bulk insert to a pf)

9 Answers  


There are six records in a file and we are going to update that records and used commit operation when it complete the update but suppose when it updating the third record,a error occured and operation failed.Is previously two records will be update or whole operation will be rollback? Please confirm it.

2 Answers  


Categories