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 |
How do define dynamic array in cobol.
COMPUTE X = A * B - C * D and COMPUTE X = (A * B) - (C * D) (a) Are not the same (b) Are same (c) Syntactically wrong (d) Will yield a run time error
What are the different types of condition in cobol and write their forms.
I have a occurs for 100 times but it has executed 101 time what could be the reason?
How do you define a table/array in COBOL?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length
01 WS-NAME PIC X(10) OCCURES 2. by this we can get ws-name 2 times. My qustion is how can we access the second name
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
how will u find out 3rd week's 2nd day using occurs ?
can any one help -s806
Explain complete concept of table handling in COBOL with an example?