1.Can we define condition-name conditions in FD entry.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / harish
according to me yes, we can define condition names in FD
entry..
pls let me know if u have any queries
HARISH POOMGAME SHIVAPPA
NIIT TECHNOLOGY
KOLKATA
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ashok
yes guys.. we can write it... evne i have tried it. its
working....
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nag
Yes, we can used conditon names in FD section. here is
sample code of our project.
05 DIRECT-BILL-INDICATOR PICTURE X.
88 DIRECT-BILL-ONLY VALUE '1'.
88 DIRECT-OR-AGENCY-BILL VALUE '2'.
Is This Answer Correct ? | 0 Yes | 0 No |
What is SQL Code -904 and -903 in DB2 And how to handle it?
If A>B next sentence end-if display 1 display 2. display 3. If a>b, it will display only 3.(the next sentence, ie., after fullstop/period) ____________________________________ if a>b continue end-if display 1 display 2. display 3. If a>b, it Will display 1 2 3 (the next statement) ____________________________________ if a>b continue display 1 end-if display 2 display 3. display 4. If a>b, Will it display 2 3 4 (or) 1 2 3 4 ?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
what is Reentrancy and Quasi-reentrancy?
File status must be checked both while opening and reading the file or only while reading the file?
Explain how to differentiate call by context by comparing it to other calls?
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
what is linkcard in cobol?
What are the different rules of SORT operation?
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
I have 100 records in a file.. i want to sort the records from 5 to 5o... give the syntax...
i want to learn mainframes. i completed MCA ,whats the future of mainframes