1.Can we define condition-name conditions in FD entry.
Answer Posted / k.phani
yes we can define condition variables in fd entry,here is
the example
FD TRANS-FILE.
01 TRANS-REC.
O2 TRANS-CODE PIC X.
88 INSERTION VALUE IS 'I'.
88 DELETION VALUE IS 'D'.
88 MODIFICATION VALUE IS 'M'.
02 REST-OF-TRANS.
03 TRAN-NO PIC X(5).
03 TRAN-NAME PIC X(20).
..............
HERE IN PROCEDURE DIVISION WE CAN USE CONDITIONS NAMES
AFTER READING TRANS-FILE FOR DELETING, MODIFYING,INSERTING
THE RECORD IN MASTER-FILE.
I HOPE THIS CLEAR UR DOUBT
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
HOw can I get the negative sign while deduct high value from low value
What are the rules of the move verb?
How do you reference the following file formats from cobol programs?
What is Pic 9v99 Indicates in COBOL?
what are decleratives in cobol?
For rewrite, why is it mandatory that file needs to be opened?
What is amode(31)
How do you define a variable of comp-1 and comp-2?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What are the different rules to perform a Search?
What is the difference between comp and comp-3 usage?
i need a small 3d program using inline and outline.
What is the difference between comp and comp-3?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?