i just need the first and last record from a sequencial
file?how
Answer Posted / sneha
USE SKIP(N) To skip number of records
if 10 accounts are there and u want to skip first 7 records
use
//sysin dd*
repro infile(dd1) -
outfile(dd2) -
skip(07) -
count(03)
/*
for 1st and last
//sysin dd*
repro infile(dd1) -
outfile(dd2) -
count(1) -
skip(08) -
count(01)
/*
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is Cataloged Procedures?
Is their any limit for data sets?
Explain about LMQUERY�give a dialog information about a data set
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
Can I send output of job to my remote device careerride123?
What is the function of //jcllib statement?
Is acct parameter mandatory?
How does the jcl specify the job to os?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
How to submit jcl through a cobol program?
Explain how can a jobs execution priority be modified?
what are JCLLIB and STEPLIB in JCL?
how you can access an uncataloged dataset in a JCL?
what is use of space parameter in dd statement?
Explain the function of the steplib dd statement?