control variable in online screens




Answers were Sorted based on User's Feedback



Answer / sundar selvaraj

A control variable is used to dynamically set attribute and
colour definitions for a field or group of fields depending
upon a program condition. For example, Consider an order
processing screen that allows you to create new contracts,
modify existing contracts and look-up paid-up contracts.
The screen used for all these functions is the same.
However, when a paid-up contract is shown to the user, you
do not expect it to be displayed in a modifiable state. So,
you protect all the fields of the map and show it
like "read only". However, for modifying an existing, non-
paid-up map, you enable certain fields. So, control
variables can be used in scenarios like this to dynamically
set the attributes of the field.

I hope this answers your query.

Is This Answer Correct ?    11 Yes 0 No

Answer / jaydip chakrabarty

A control variable is is defined with format C and can be
used to assign field attributes dynamically. It could be
assigned during the map design (element level) as well as
during the programming (statement level).

Example :
DEFINE DATA LOCAL
1 #ATT(C)
1 #A
END-DEFINE
MOVE (AD=I CD=BL) TO #ATT
INPUT #A (CV=#ATT)

Is This Answer Correct ?    5 Yes 2 No

Answer / jamil ahmad

In a layman terms, a control variable (#CV (C) does only
two but very useful functions.

1. Do you want the user to overlay the field with new value
or you want to protect the field, for example, if an Order#
is a system generated number, you would want that to be
modified

2. If the fields not protected, was it a modified?
For example, if the SSN was modified then validate it
otherwise take no actions against the field. Juts my 2 cents

Is This Answer Correct ?    2 Yes 0 No



Post New Answer



More Natural Interview Questions

ADABAS basic concepts. Like inverted list, address converter ,data storage

2 Answers   IBM,


difference between fetch , call and callnat

3 Answers   IBM,


If the number of parameter is more than the expected then NAT0919 error is displayed. How many parameter are allowed in a CALL and CALLNAT statement?

3 Answers   JPMorgan Chase,


how we can find occurence of MU and PE fileds in a file?

2 Answers  


why do we use file-aid for seqential files?

1 Answers   Tech Mahindra,


Describe the COBOL coding sheet

2 Answers   Cap Gemini, Royal Infotech,


Would like to know if have an expecific command that returns a code or something about the execution of a CALLNAT. For example ... CALLNAT 'SUBPRG' [parameter] [parameter] ... [here comes a code or command that checks if the CALLNAT was successful]

1 Answers  


difference between escape(top or bottom) and escape immediate(top or bottom?

3 Answers   CTS,


What is the difference between READ BY ISN and FIND

2 Answers  


what type of files we can process thru file-aid

1 Answers   Tech Mahindra,


How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine.

4 Answers  


can i see the copy book length using file-aid ?

2 Answers   TCS,




Categories