have in 100 records in a file i want to read first 3 records
and skip next 3 records and agan i want to read 3 records and
again i want to skip 3 records...

Answer Posted / santhosh

We can do it through JCL by using sort utility ..Through splitby=3 in outfil statement giving two different outputs..It will store two alternative records into two datasets alternatively

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you please let me know the centre name of INS certification in Kolkata.

1717


How arrays can be defined in COBOL?

665


What is the difference between next sentence and continue in cobol programing language?

712


What is rmode(any) ?

686


What is a scope terminator give example?

659






how to access the file from prodution from changeman tool and to submit a file to production

6686


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2725


Write a cobol program making use of the redefine clause.

739


Which Search verb is equivalent to PERFORM…VARYING?

687


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


Write a program to explain size error.

677


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2060


What is the use of intialize verb?

751


What type of SDLC u followed? Why?

1522


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1525