Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is Cataloged Procedures?

1153


Is their any limit for data sets?

1169


Explain about LMQUERY�give a dialog information about a data set

1428


why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

2432


Can I send output of job to my remote device careerride123?

1114


What is the function of //jcllib statement?

1299


Is acct parameter mandatory?

1184


How does the jcl specify the job to os?

1135


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) ?

2212


How to submit jcl through a cobol program?

1136


Explain how can a jobs execution priority be modified?

1182


what are JCLLIB and STEPLIB in JCL?

1159


how you can access an uncataloged dataset in a JCL?

1116


what is use of space parameter in dd statement?

1256


Explain the function of the steplib dd statement?

1115