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...

Suppose i have a file with 10 recs and i want to skip only the
7 th record and copy the rest into another file. How do i do
it using SORT?

Answer Posted / sanjay soni

Let me give it a try:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/80)
//SORTOUT DD DSN=... output file (FB/80)
//SYSIN DD *
OPTION COPY
INREC BUILD=(1,80,SEQNUM,3,ZD)
INCLUDE COND=(81,03,NE,ZD,3)
OUTREC BUILD=(1,80)
/*

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What dd statement is used to supply the name of a dataset?

1442


what is the use of JCL?

1208


Is automatic restart possible in jcl? If yes, how?

1168


write a jcl to execute a job by 7:00 am on jan 20,1986?

1162


what is DD statement is used in JCL?

1243


Is it possible to left uncode disp?

1247


Mention the types of job control statements?

1224


how you can access an uncataloged dataset in a JCL?

1191


which parameter is used to check the syntax of a jcl without executing it?

1416


What is the function of the dd mgmtclas keyword in sms datasets?

1289


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

1456


What is notcat 2 - gs?

1512


Describe the various parameters utilized in the creation of a gdg?

1209


How can a jobs execution priority be modified?

1338


What is the significance of addrspc parameter in the exec statement?

1129