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
example for sub strings ? and refernce modifications whit output pls
What is inspect in cobol ?
What is the local-storage section?
How many bytes S(8) comp field occupy and its maximum value?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Give some examples of command terminators?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What are the different open modes available in cobol?
What are the different types of condition in cobol and write their forms.
What is redefines clause in COBOL?
What are literals?
Explain what you understand by passing by value.
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
Define cobol?
how do you reference the variable unblock file formats from cobol programs