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 / kumar

sort fields=copy
outfil files=(01,02),spilt

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

OPEN INPUT StudentFile READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ PERFORM UNTIL EndOfStudentFile DISPLAY StudentId SPACE StudentName SPACE CourseCode SPACE YOBirth READ StudentFile AT END SET EndOfStudentFile TO TRUE END-READ END-PERFORM CLOSE StudentFile STOP RUN what will be output

2065


how do you create an alternate index ?

576


Explain the significance of the shareoptions parameter?

532


What is the place for VSAM KSDS?

673


How does control intervals and control areas related to each other?

549






there are seven idcams commands in vsam. Can you name and explain each of them?

643


What is recovery parameters in define cluster command?

559


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

566


what are the idcams commands that can be used for vsam and explain each of them.

548


Under idcams, multiple functions can be executed, each of which returns a condition code. What will be the condition code returned to the operating system?

585


What is the main function of key-sequenced data set?

564


What is control interval?

608


Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?

604


how can you copy to a vsam cluster?

623


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

654