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 |
wht do u mean by notify parameter, how can u give acess to multiple users ?
What is a JCL Command statement ?
what are the various stages of job processing?
What is the differentiation between TRK,cyl, and Bytes... how they can be connected??
how to solve u4038 abbend?........
What is the difference between a symbolic and an override in executing a PROC?
What is NOTCAT 2
What are the common jcl syntax errors you get? This is not abends?
How is a dataset passed from one step to another?
How do you skip a particular step in a proc/JOB?
i have a jcl calling proc which has 10 steps, i want to execute from step5 to step10, where can i code RESTART and COND parameter?
There is one QSAM is the VB file. i want to get the first characters in this file and change those characters from'abcd' to '1234' and creat a vasm file to put '1234' in it. how to do in only JCL. if it not QSAM, it's VASM and VB. how to do it.