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


Please Help Members By Posting Answers For Below Questions

What is comp-1 and comp-2?

764


How can you get the ksds file records into your cobol program?

644


What are literals?

632


When is inspect verb is used in cobol?

677


What is the problem of ordered sequential files access?

702






how do you reference the printer file formats from cobol programs

665


What is the usage of comp fields in cobol?

660


What is the difference between structured cobol programming and object alternativelyiented cobol?

755


how to convert the recors form vsam file to db2 table tru file aid

2763


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1588


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

423


What is the difference between binary search and sequential search?

643