control variable in online screens

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


Please Help Members By Posting Answers For Below Questions

Explain difference between read(1) and read work file once?

726


Explain difference between read work file 1 and read work file once? Why we are using work file once?

746


Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?

826


What is data trace system 2.0 used for?

5399


Explain how are you going to remove duplicates from the file that is being read?

776


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

860


What is the difference between read work file 1 and read work file once? Why we are using work file once?

744


Explain control variable in online screens?

785


Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?

760


The natural file converted to PDF file if Yes then explain ?

2870


Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?

798


What is the difference between read(1) and read work file once?

762


Explain how to move cursor to a particular field when position is not known?

759


What is cobol coding sheet?

900


How to find occurrence of mu and pe fields in a file?

681