How can we initialize a variable which is a constant in a
LDA. Suppose I want to declare a variable #a N1(1:7) having
constant values as 1,2,3,4,5,6, and 7 for respective
occurance then how can we do that?

Answer Posted / dipti karale

In data area editor screen, define the variable #a with
Format "N" and length 1. Then edit this variable/ field by
typing in a ".e" just before the level number of this
variable. This will take you the "Extended Field Definition
Editing screen". Type the code as "A" for Array index
definition. On the "Index definition" screen, declare your
index as 1:7 press enter and exit the screens until you are
back onto the data area editor screen.Now again type in
a ".e" to edit the same field/ variable and type code "S"
for defining the single initial values. On this initial
value screen, change the "Define as Constant" field value
from "N" (No) to "Y" (yes)and just below it define constant
values against each index value ranging from 1 to 7.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between null compression and default compression?

525


What are the key features of adabas database system?

518


Suppose if I have updated few fields of adabas file using update command, and after that I used display to see that field get updated or not. If in display it showing nothing or record did not get updated then what can be the possible reasons?

562


What is the full form of adabas?

564


Define adabas?

507






What is adabas?

605


Why adabas is used?

539


Explain How will you the specification of database file?

500


Explain associator in adabas?

489


What is adabas and why it is used?

564


What is find and read operation in adabas file?

492


What is dbid used in adabas?

562


Define an associator in adabas?

537


Explain the significance of dbid used in adabs?

490


Explain the advantages of adabas?

587