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 read(1) and read work file once?
Explain difference between read work file 1 and read work file once? Why we are using work file once?
Explain how to receive data passed through jcl parm parameter in a natural program? How data definition is defined in the program?
What is data trace system 2.0 used for?
Explain how are you going to remove duplicates from the file that is being read?
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
What is the difference between read work file 1 and read work file once? Why we are using work file once?
Explain control variable in online screens?
Explain what happens when you issue a escape routine in a program? Will there be any compilation /run time erro?
The natural file converted to PDF file if Yes then explain ?
Explain how to ftp the natural program to desktop? (From mainframe to pc), is it possible?
What is the difference between read(1) and read work file once?
Explain how to move cursor to a particular field when position is not known?
What is cobol coding sheet?
How to find occurrence of mu and pe fields in a file?