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?

Answers were Sorted based on User's Feedback



How can we initialize a variable which is a constant in a LDA. Suppose I want to declare a variabl..

Answer / 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

How can we initialize a variable which is a constant in a LDA. Suppose I want to declare a variabl..

Answer / daniel

You do something like:

#a (n1(1:7) init (1) <1>
(2) <2>
(3) <3>
(4) <4>
(5) <5>
(6) <6>
(7) <7>

Is This Answer Correct ?    8 Yes 5 No

How can we initialize a variable which is a constant in a LDA. Suppose I want to declare a variabl..

Answer / kalyan

in the LDA against the field give .e, another screen will
be displayed. there give "S" for CODE, another screen will
be displayed there we need to give the constant values.
come back and save & stow the lda.

Is This Answer Correct ?    4 Yes 2 No

How can we initialize a variable which is a constant in a LDA. Suppose I want to declare a variabl..

Answer / joydeep chakrabarty

In your program editor, type:
1 #A (N1/1:7) INIT(v) <1,2,3,4,5,6,7>

Thanks.

Is This Answer Correct ?    3 Yes 1 No

How can we initialize a variable which is a constant in a LDA. Suppose I want to declare a variabl..

Answer / rockys

Tricky part is 'LDA" . You need to use 'Initial values and
Edit mask' menu to initialize an array in LDA as there not
enough space on right hand side .

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More ADABAS Interview Questions

Define an associator in adabas?

0 Answers  


what is adabas? Can u point me to a resource so I can study up for an interview?

6 Answers  


What is the significance of DBID used in Adabs?

1 Answers  


Explain the advantages of adabas?

0 Answers  


Explain the significance of dbid used in adabs?

0 Answers  






How to 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?

1 Answers  


What is adabas and why it is used?

0 Answers  


What are the key features of adabas database system?

0 Answers  


What is find and read operation in adabas file?

0 Answers  


Define adabas?

0 Answers  


There is subprogram and which is used in more then 200 modules. when we made changes to subprogram is it required to RESTOW all the main programs? If YES means how i can restow all 200 main programs at a time.

3 Answers   HCL,


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?

5 Answers   TCS,


Categories