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
What is comp-1 and comp-2?
How can you get the ksds file records into your cobol program?
What are literals?
When is inspect verb is used in cobol?
What is the problem of ordered sequential files access?
how do you reference the printer file formats from cobol programs
What is the usage of comp fields in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol?
how to convert the recors form vsam file to db2 table tru file aid
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What is the difference between binary search and sequential search?