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

Explain about Internal Sort

Answer Posted / dimpy19

SORT work-file ON ASCENDING KEY rec-key1
[ON DESCENDING KEY rec-key2]
USING input-file GIVING output-file.


Input file - is the file which we have to sort either in ascending or descending order.

Work file - is used to hold records while the sort process is in progress.
Input file records are transferred to the work file for the sorting process.
This file should be defined in the File-Section under SD entry.

Output file - is the file which we get after the sorting process.
It is the final output of the Sort verb.


SORT performs the following operations -

1. Opens work-file in I-O mode, input-file in the INPUT mode and output-file in the OUTPUT mode.
2. Transfers the records present in the input-file to the work-file.
3. Sorts the SORT-FILE in ascending/descending sequence by rec-key.
4. Transfers the sorted records from the work-file to the output-file.
5. Closes the input-file and the output-file and deletes the work-file.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1162


Name what parameter directs the output of the job log dataset?

1103


How to run cobol program using jcl?

1289


i want to store 20 digits . how will u do it in cobol ?

1486


what is the resolution for sb37 error

9248


define cond parameter in jcl?

1322


How to override loadlib?

2108


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

1123


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

2183


Explain the function of dd name parameter with a 2 part structure; audit.report?

1516


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?

1203


what is DSN in JCL and what are the parameters to declare the DSN?

1245


if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?

2349


how to compare two datasets without using superce because output is limited to 133 bytes

2159


What is job control language?

1142