Interviewer And Interviewee Guide

IBM ADABAS Interview Question:

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?

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online IBM ADABAS Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.