Explain about Internal Sort
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 |
How can u know the current date using jcl?
What is a JCL Command statement ?
Why include statement is used in a jcl?
How to copy VSAM files without using REPRO
how can we merge two input files from two different jobs into one output file ? Please ans any one ASAP?
is there any utility for restarting a particular step in jcl reply soon ?
What do you understand by the term job time – out and how can you overcome that?
IN-STREAM DATA NOT ALLOWED IN PROC how can come out from this problem
we define the array like this 01 array 02 veg occurs 10 times 03 days occurs 6 times 04 cost pic 9(5). but why don't we write it as 01 array 02 veg occurs 10 times 03 days occurs 6 time 04 cost pic 9(5). is there any error will occur ,what is it? and why don't 01,02,03 not contain picture clause? if we put pic in those is there any error will occur what is it will occur?
What is the difference b/w the CLASS,TIME,PRTY in jcl job card.
What is the use of symbol // in jcl?
How can the disposition of sysout datasets be set for an entire jobstream?