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 is a ci split?

546


What is a lds (linear data set) and what is it used for?

519


what do you mean by the repro command?

566


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

724


if you wish to use the rewrite command how must the vsam file be opened?

678






Using alternate indexes in batch program?

585


What is a ci split? What is a ca split?

644


Explain the function of the relative record data set?

541


is it required that primary key values have to be unique? Do alternate key values have to be unique?

597


What is a base cluste?

599


what are the codes returned by the ams (access method services) command during the execution in vsam?

763


What are the advantages of vsam over isam?

688


what does a file status of 02 on a vsam signifies?

623


What is the function of entry sequenced data set?

644


What are the different parameters that are used in vsam?

720