ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  MainFrame  >>  IBM MainFrame  >>  Natural
 
 


 

 
 COBOL interview questions  COBOL Interview Questions
 JCL interview questions  JCL Interview Questions
 CICS interview questions  CICS Interview Questions
 DB2 interview questions  DB2 Interview Questions
 IMS interview questions  IMS Interview Questions
 IDMS interview questions  IDMS Interview Questions
 Natural interview questions  Natural Interview Questions
 ADABAS interview questions  ADABAS Interview Questions
 REXX interview questions  REXX Interview Questions
 Assembler interview questions  Assembler Interview Questions
 CLIST interview questions  CLIST Interview Questions
 QMF interview questions  QMF Interview Questions
 MVS interview questions  MVS Interview Questions
 OS390 interview questions  OS390 Interview Questions
 OS 2 interview questions  OS 2 Interview Questions
 VSAM interview questions  VSAM Interview Questions
 QSAM interview questions  QSAM Interview Questions
 Sysplex interview questions  Sysplex Interview Questions
 IBM MainFrame AllOther interview questions  IBM MainFrame AllOther Interview Questions
Question
control variable in online screens
 Question Submitted By :: Nagendra Rampuria
I also faced this Question!!     Rank Answer Posted By  
 
  Re: control variable in online screens
Answer
# 1
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 ?    5 Yes 0 No
Sundar Selvaraj
 
  Re: control variable in online screens
Answer
# 2
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 ?    3 Yes 0 No
Jaydip Chakrabarty
 
 
 
  Re: control variable in online screens
Answer
# 3
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 ?    0 Yes 0 No
Jamil Ahmad
 

 
 
 
Other Natural Interview Questions
 
  Question Asked @ Answers
 
syntax for all WRITE COMMAND in natural language  3
difference between fetch , call and callnat IBM3
Types Of Read , FIND  2
difference between read(1) and read work file once ?  3
ADABAS basic concepts. Like inverted list, address converter ,data storage IBM2
Is it possible to declare a GDA for an external subroutine?  4
What exactly is a hyperdescriptor? How does it work?  2
Can we update with histogram?  2
how to move cursor to a particular field when position is not known?  3
What is Natural? TCS4
how many work file we can code in jcl?  2
A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?  5
differnce between read work file 1 and read work file once? why we are using work file once?  2
what is the difference between read and find ? IBM2
control variable in online screens Mind-Tree3
How can I create 1 DDM that fetches 3 ADABAS files simultaneously?  5
how we can find occurence of MU and PE fileds in a file?  2
difference between escape(top or bottom) and escape immediate(top or bottom?  2
 
For more Natural Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com