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

What is SORT ? How do we eliminate duplicate records ? How
do I select some records using SORT ?

Answer Posted / sanjeeva reddy

Sort: Sort utility is used to sort the data in particular order(Ascending or Descending order).

Eliminate Duplicate Records:
----------------------------
//SYSIN DD *
SORT FIELDS=COPY
SUM FIELDS=NONE
/*
Select Some Records:
--------------------
You can use "INCLUDE CODITION" along with "SORT FIELDS" to
select desired records.The code goes like this......

//SYSIN DD *
SORT FIELDS=(<Give The Sort Condition Here>)
INCLUDE COND=(<Give The Required Condition Here>)
/*

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the job statement in jcl?

1110


In sms datasets, what is the function of the dd avgrec keyword?

1040


what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?

1162


what is the use of IEBGENER utility?

1114


Is acct parameter mandatory?

1146


Name a few IBM utility programs, and explain its function.

4898


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

1100


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

1229


Explain how can a jobs execution priority be modified?

1147


How does jcl act on code(if you take a cobol program)?

1227


How can a fb file convert to vb file using sort program?

1289


what is JCL?

1103


How can return codes be tested before execution of a job step?

1425


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1179


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

1456