without performing any operations on a file how can i know
whether it contains data or not

Answer Posted / sravani

through file status we can know this. read is not possible for empty files

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pertinent COBOL commands?

2875


State the various causes of s0c1, s0c5 and s0c7.

882


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

2648


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2159


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

979


what is the difference between COBOL2 AND COBOL390?

2777


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

2115


Define cobol?

1096


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1030


What is the difference between PIC 9.99 and 9v99 in COBOL?

1019


Why did you choose to work with ibm mainframe cobol programming?

889


) what is the difference between AID and HANDLE AID?

1918


What is the Purpose of Pointer in the string?

869


What is the difference between goback, stop run and exit program in cobol?

1282


What is the difference between comp and comp-3?

935