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
In job processing, what happens in execution stage?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What is jcl in mainframe?
how you can access an uncataloged dataset in a JCL?
How to pass the parameter in parm using linkage section ? (syntax)?
What is Cataloged Procedures?
Explain the job statement in jcl?
Explain the purpose of the dd keylen parameter?
Is it possible to left uncode disp? If yes, how?
Explain the function of job statement in jcl?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
How to alter the parameters for the existing gdg?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
What is the purpose of dd * statement in jcl?
What is catelog procedure and how many catelog procedure to use in one job?