Answer Posted / rama
we will code file status in file-control of environment
division.
file-control.
SELECT infile ASSIGN TO ws-dd-name
FILE STATUS IS ws-fs-code.
and ws-fs-code has to coded in working-storage section.
if i'm wrong plz let me know...
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Which mode is used to operate the sequential file?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
What is static and dynamic call in cobol?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
what are decleratives in cobol?
How do get the result of your program directly on your pc?
How do you reference the following file formats from cobol programs?
Write a program to explain size error.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How to remove 2 duplicate records and copy only one using job control language?
IF I mention stop run in CICS what happens?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are the pertinent COBOL commands?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?