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 / santy

Hi,

U can use only first 100 records from a file by using the
IDCAMS utility.

JCL to perform this operation is as below,

//JOBNAME JOB ,, Notify=User_id
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INDATA DD DSNAME=DATA1
//OUTDATA DD DSNAME=DATA2
//SYSIN DD *
REPRO
INFILE(INDATA) OUTFILE(OUTDATA)
START(0) COUNT(100)
/*


COUNT variable in JCL with start counting a record from
start position 0 and count first 100 record.

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1599


What is a scope terminator give example?

642


Explain how you can characterize tables in cobol?

629


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

691


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1755






How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2709


What is the Purpose of POINTER Phrase in STRING command in COBOL?

703


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

638


Which Search verb is equivalent to PERFORM…VARYING?

670


What is difference between static and dynamic call in cobol?

762


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1912


explain sorting techniques in cobol program?

674


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

728


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

801


how do you reference the esds vsam file formats from cobol programs

616