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
by using IDCAMS utility u can do this.
//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) SKIP(100)
/*
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
What is Pic 9v99 Indicates in COBOL?
What is report-item in COBOL?
) How do u handle errors in BMS macro
In which area will you utilize 88 level items in cobol?
What are declaratives and what are their uses in cobol?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
How to remove 2 duplicate records and copy only one using job control language?
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
What rules are followed by the search verb.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What are literals?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?