In a file(PS), we dont know how many records are there.
requirement is divide half n half the records n insert into
2 another files(PS).

Answer Posted / shaan

Use Sort program to count the no of records and then sent
half of them to a PS file using sort fields=copy with
skiprec and stopaft command.

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are s0c1, s0c4, s0c5, s0c7 abends?

796


What is the biggest disadvantage of using a vsam dataset?

607


we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.

730


Define base cluster?

571


What are the access method services used in vsam?

596






difference between vsam and database tables

641


Discuss record management in vsam?

547


Explain the catalog?

570


how do you create an alternate index ?

586


Can you delete vsam files with the delete option of the disposition parameter of jcl?

656


what is the syntax of ams modal commands?

774


what is the use of the file status clause in the select statement in vsam?

570


Using alternate indexes in batch program?

595


what is meant by dirty read in vsam?

844


How do you define an altindx?

566