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).

Answers were Sorted based on User's Feedback



In a file(PS), we dont know how many records are there. requirement is divide half n half the recor..

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

In a file(PS), we dont know how many records are there. requirement is divide half n half the recor..

Answer / vijju

may be u can use SPLIT options in sort card

Is This Answer Correct ?    7 Yes 1 No

In a file(PS), we dont know how many records are there. requirement is divide half n half the recor..

Answer / abhijit

OUTFIL FNAMES(OUT1,OUT2) SPLIT

Is This Answer Correct ?    4 Yes 0 No

In a file(PS), we dont know how many records are there. requirement is divide half n half the recor..

Answer / kumar

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

Is This Answer Correct ?    3 Yes 0 No

In a file(PS), we dont know how many records are there. requirement is divide half n half the recor..

Answer / ram

any one write the code

Is This Answer Correct ?    0 Yes 0 No

In a file(PS), we dont know how many records are there. requirement is divide half n half the recor..

Answer / kk

Write a cobol program with an Index and read the input file
and write to two files based on alternative records.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More VSAM Interview Questions

What is Control Interval, Control Area?

1 Answers  


What is the main function of linear dataset?

0 Answers  


what do you mean by gdg in vsam?

0 Answers   IBM,


what is meant by BUFND & BUFNI..?

1 Answers  


What are the access method services used in vsam?

0 Answers  






what is meant by s0c-07 system abend codes?

0 Answers   IBM,


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

0 Answers  


What's a LDS (Linear Data Set) and what's it used for?

1 Answers   Cap Gemini, Steria,


Explain the purpose of the file status clause in the select statement?

0 Answers  


what is the drawback of vsam dataset?? a.execution slow. b.free space. c.independent storage device. d.none of the above. let me know the answer with reason.

4 Answers   Target,


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

0 Answers   IBM,


If we are using empty VSAM file, we can see this empty file by using FILE AID tool. How can we open empty VSAM file if you are using in Program..?

3 Answers  


Categories