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
i want a program using by if, evaluate , string, unstring, perform, occurs?
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
how do you reference the rrds file formats from cobol programs
Are you comfortable in cobol or jcl?
What is a SSRANGE and NOSSRANGE?
What guidelines should be followed to write a structured cobol prgm?
What are the different open modes available in cobol?
What is the difference between perform … with test after and perform … with test before?
What is the usage of comp fields in cobol?
How can you get the ksds file records into your cobol program?
Write a cobol program making use of the redefine clause.
How do you get the data to code the BMS macro?
What is Pic 9v99 Indicates in COBOL?
State the various causes of s0c1, s0c5 and s0c7.
Why did you choose to work with ibm mainframe cobol programming?