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 catelog procedure and how many catelog procedure to use in one job?
What are the parameters that are used in creating a gdg?
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) ?
Is automatic restart possible in jcl? If yes, how?
How do you access an uncatalogued dataset in a jcl?
what is “Cond= even” and “Cond=only”?
Is it possible to define dd statements as you want?
What statement can be used to send data to another mvs jes3 node?
which parameter is use to declare the name of dataset in dd statement?
Where & How Do You Code Identifier In Jcl?
I need exexution process for JCL programs
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
What is concatenating?
How can a fb file convert to vb file using sort program?
what happens in conversion stage in job processing?