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 the use of KSDS,LDS,ESDS,RRDS??what is VRRDS?? How are all these useful in realtime scenario??Plz helpme out...Its a recent question in IGATE..

0 Answers   iGate,


How can you create a VSAM dataset? Can you write a JCL for it?

4 Answers   IBM, TCS,


How do you convert flat files to VSAM files ?

5 Answers   EDS, IBM,


How to createing new version of GDG with out loosing the data in preaves GDG version?

7 Answers   Patni, Satyam,


Is CA(Control Area) is part of CI(Control Interval)

3 Answers  






when u r using repro command what happens if both infile and outfile names same

4 Answers  


What is the upgrade set?

1 Answers  


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

1 Answers   IBM,


What does a file status of 02 on a VSAM indicate?

1 Answers   IBM,


Describe SHAREOPTIONS parameter (SHR) in Define Cluster command.?

1 Answers  


can we access sequential files online

4 Answers   Cap Gemini, GS,


What is the main function of key sequenced data set in vsam?

0 Answers  


Categories