Give some advantages of REDEFINES clause?
Answers were Sorted based on User's Feedback
Answer / mahathiaz
1. You can REDEFINE a Variable from one PICTURE class to
another PICTURE class by using the same memory
location.
2. By REDEFINES we can INITIALISE the variable in
WORKING-STORAGE Section itself.
3. We can REDEFINE a Single Variable into so many sub
variables. (This facility is very useful in solving Y2000
Problem.)
| Is This Answer Correct ? | 23 Yes | 1 No |
In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?
What is the point of the REPLACING option of a copy statement?
How will you find the currepted records in a file
88 level entry is used for (a) data items in WORKING-STORAGE SECTION (b) items with RENAMES clause (c) condition-names (d) None of the above
Explain how to differentiate call by context by comparing it to other calls?
CAN ANY ONE HELP WHAT IS QTP? why it is nessery AND WEN IT IS USED?
In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution?
how many maximum no of variables can be declared in linkage section ?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What are the different ways to run a COBOL DB2 program using JCL?
File status must be checked both while opening and reading the file or only while reading the file?
Difference between file status codes 02 and 22.... since both are for duplicate key detection.