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 about ISPF/TSO Commands

1954


What do you know about jcl?

1141


Why block size is multiple of lrecl in jcl?

1427


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2449


How can unused space allocation be returned to the system when a dataset is closed?

1498


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

2456


Explain how can the attributes of one sms dataset be copied to another dataset?

1218


How to submit jcl through a cobol program?

1153


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

1240


which utility is used to sort a file in jcl?

1227


What is multithreading in jcl?

1473


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

1345


How jcl is used for testing batch programs?

1288


What are steplib and joblib?

1172


Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?

1118