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
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
What is a scope terminator give example?
Explain how you can characterize tables in cobol?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Write a program to enter and display the names of students in a class using the occurs clause.
Which Search verb is equivalent to PERFORM…VARYING?
What is difference between static and dynamic call in cobol?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
explain sorting techniques in cobol program?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
how do you reference the esds vsam file formats from cobol programs