How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)
Answer Posted / sandy
Opening a file will give a file status code of '0' and
not '10'. Only when reading, file status will be '10'
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
how do you define single dimensional array and multidimensional array in your cobol?
Which mode is used to operate the sequential file?
How do we get current date from system with century in COBOL?
What are the cobol coding sheets?
what is the use of outrecord?
What is the difference between comp and comp-3?
What is the difference between Call and a Link?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
how do you reference the printer file formats from cobol programs
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
what is the difference between COBOL2 AND COBOL390?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?