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

What is the difference between PIC 9.99 and PIC9v99?

1024


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1840


How you can read the file from bottom?

863


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1398


What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?

844


What is the usage of comp fields in cobol?

860


how do you reference the printer file formats from cobol programs

879


how do you reference the rrds file formats from cobol programs

1124


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8657


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

898


what is the use of outrecord?

1960


i need a small 3d program using inline and outline.

1872


how do you reference the variable block file formats from cobol programs

914


What are the pertinent COBOL commands?

2816


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

973