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



Explain about Internal Sort..

Answer / 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

More JCL Interview Questions

What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with?

3 Answers   IBM,


what operation is performed by job statement?

0 Answers   IBM,


How would you understand error(execution phase)?

0 Answers  


what happens in conversion stage in job processing?

0 Answers   IBM,


lines(1,cancel)??What is meant by that??Plz explain it....

1 Answers   IBM,


IN DFSORT sum fields=none is usec to remove duplicates.how to write the duplicates in another dataset?

2 Answers  


What is the function of the steplib dd statement?

0 Answers  


Could you provide an example and its effect OF, Using COND on JOB and EXEC both ?

4 Answers   IBM,


can we copy a file from fixed block to variable block and vice versa ....asap

1 Answers  


How many days does a job remain in spool

7 Answers   Syntel,


Given a input file with duplicates how to remove the duplicate records from the file using JCL?

6 Answers   CDS, Convergys, TCS,


why jobstep can't be more than 255 and for GDG has max limit 255 . Is there any relation between the two

1 Answers   IBM, Perot Systems,


Categories