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
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Mention the guidelines to write a structured cobol program?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
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.
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
How do we get current date from system with century in COBOL?
Differentiate between structured cobol programming and object-oriented cobol programming.
Write the code to count the sum of n natural numbers.
) what is the difference between AID and HANDLE AID?
Write some characteristics of cobol as means of business language.
What are the different data types in cobol?
For rewrite, why is it mandatory that file needs to be opened?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.