i want to use only first 100 records from a file.plz tell
me how to write JCL for this(for read,copy,write
operations).plz give me details of all posible JCL
utilities?

Answer Posted / khbnaidu

Using SORT you can do this...

SORT FIELD=COPY, SKIPREC=200 (OR SOME MORE RECORDS),
STOPAFT=100

Is This Answer Correct ?    15 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between static and dynamic call in cobol?

777


What is rmode(any) ?

686


How do u write test cases?

1638


Why occurs cannot be used in 01 level in COBOL?

719


What is an in line perform? When would you use it? Anything else you wish to say about it.

647






INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

423


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8657


A table has two indexes defined. Which one will be used by the SEARCH?

759


How to remove 2 duplicate records and copy only one using job control language?

754


how to convert the recors form vsam file to db2 table tru file aid

2763


i want a program using by if, evaluate , string, unstring, perform, occurs?

4061


What is the difference between binary search and sequential search?

643


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5065


how do you define single dimensional array and multidimensional array in your cobol?

678


Whats the difference between search & search ALL?

5264