Answer Posted / 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 ? | 6 Yes | 2 No |
Post New Answer View All Answers
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
How can we see the copy book length using file-aid?
Tell me what type of files we can process thru file-aid?
What is cobol coding sheet?
Explain is it possible to code goto statement in natural? If yes please provide the syntax of the same?
The natural file converted to PDF file if Yes then explain ?
What happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
Can we see the copy book length using file-aid?
In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?
Can you explain control variable in online screens?
How converted the natural coding for adabas
What is a hyperdescriptor?
Explain how are you going to remove duplicates from the file that is being read?
What is the difference between read(1) and read work file once?
Suppose you are processing an input file in a natural program and you want the program to fail if the file is empty. What command you use in natural to force it to fail?