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

EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


What is static and dynamic call in cobol?

601


Name the sections present in data division.

701


) how do u code after getting data?

1582


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

757






Discuss about changing dataset name in proc.

765


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

755


Write the code implementing the perform … varying.

648


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3724


What is the problem of ordered sequential files access?

704


What are the cobol coding sheets?

666


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

688


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

744


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

2765


How do you differentiate between cobol and cobol-ii?

658