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
What are the different data types in cobol?
Write down the divisions of cobol program?
Can you please let me know the centre name of INS certification in Kolkata.
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?
How arrays can be defined in COBOL?
What is rmode(any) ?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How do u write test cases?
How do you get the data to code the BMS macro?
Explain the configuration section of a cobol program with examples of syntax.
What is the LINKAGE SECTION used in COBOL?
What are different data types in cobol?
What is the difference between Global and External Variables?
Explain about different table spaces.
how do you reference the rrds file formats from cobol programs