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 / arul anand.a

SORT FIELD=COPY,
SKIPREC=0 ( skip 0 records)
STOPAFT=100 (stop after 100 records).

so it will copy only first 100 records.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

714


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

782


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2109


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

678


How are the next sentence and continue different from each other?

766






if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


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

2727


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1661


In COBOL, what is the different between index and subscript?

763


State the various causes of s0c1, s0c5 and s0c7.

665


In COBOL programming, what is PERFORM? What is VARYING?

674


What is the local-storage section?

686


What is inspect in cobol ?

806


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


Whats the difference between search & search ALL?

5280