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
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is static and dynamic call in cobol?
Name the sections present in data division.
) how do u code after getting data?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Discuss about changing dataset name in proc.
How to remove 2 duplicate records and copy only one using job control language?
Write the code implementing the perform … varying.
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.
What is the problem of ordered sequential files access?
What are the cobol coding sheets?
how do you reference the variable block file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how to convert the recors form vsam file to db2 table tru file aid
How do you differentiate between cobol and cobol-ii?