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

Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..

1 Answers  


CAN ANYONE TELL ME WHAT IS "JOB-CARD"

4 Answers   Syntel,


wht happens if cond=true ? pls give me with an example ?

2 Answers   Syntel,


How do you skip a particular step in a proc/JOB?

5 Answers   CSC, CTS,


What is DYNAMBR in jcl?

2 Answers   CTS,






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

2 Answers  


What is dummy parameter in JCL??

3 Answers   TCS,


What is the meaning of keyword in JCL? What is its opposite?

1 Answers  


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

0 Answers   IBM,


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  


what is the use of temporary files?

5 Answers   Hexaware,


Is condition checking possible in jcl?

0 Answers  


Categories