Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to find whether a Flat file is empty or not without
Reading a file in COBOL Program. (not using JCL)

Answer Posted / srini

You can do with IDCAMS. Use input as your file and output
is dummy file and have repro count(1) in sysin dd *, if the
file is empty, you will get condition code 4 otherwise you
will get cc '0'.

Is This Answer Correct ?    5 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2087


What are the different data types in cobol?

1347


Can we redefine the field of x(200) to less than 200?

1319


How do you define a variable of comp-1 and comp-2?

1148


Write the code to count the sum of n natural numbers.

1156


What are all the divisions of a COBOL program?

1157


What is a SSRANGE and NOSSRANGE?

1421


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

9029


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

2553


What are the pertinent COBOL

2517


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

1118


How do you reference the fixed block file formats from cobol programs

1169


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

2332


What is the difference between PIC 9.99 and PIC9v99?

1291


What is the local-storage section?

1107