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 / madhuri tungal

Use IDCAMS program.

//.........JOB........
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO INDATASET(INPUT FILE) OUTDATASET(OUTPUT FILE)
SKIP(0) COUNT(100)
/*

Is This Answer Correct ?    37 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is length is cobol?

636


What are 77 levels used for?

648


how do you reference the fixed unblock file formats from cobol programs

697


What is difference between static and dynamic call in cobol?

765


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

663






For rewrite, why is it mandatory that file needs to be opened?

610


Write a program to explain size error.

665


What are declaratives and what are their uses in cobol?

695


How do you reference the following file formats from cobol programs?

686


What are the rules of the move verb?

691


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

698


Write a program to enter and display the names of students in a class using the occurs clause.

640


How do you differentiate between cobol and cobol-ii?

643


How to print 10 to 1 if the input have only 10 digit number?

799


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

1603