What is SORT ? How do we eliminate duplicate records ? How
do I select some records using SORT ?
Answer Posted / sanjeeva reddy
Sort: Sort utility is used to sort the data in particular order(Ascending or Descending order).
Eliminate Duplicate Records:
----------------------------
//SYSIN DD *
SORT FIELDS=COPY
SUM FIELDS=NONE
/*
Select Some Records:
--------------------
You can use "INCLUDE CODITION" along with "SORT FIELDS" to
select desired records.The code goes like this......
//SYSIN DD *
SORT FIELDS=(<Give The Sort Condition Here>)
INCLUDE COND=(<Give The Required Condition Here>)
/*
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Must tape dataset definitions include vol=ser specifications?
which parameter is use to declare the name of dataset in dd statement?
How can return codes be tested before execution of a job step?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
what is the JCL statement consists of?
Explain the function of //cntl statement?
Can I send output of job to my remote device careerride123?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
Is automatic restart possible in jcl?
when does a dataset go uncataloged?
What is jcl in mainframe?
how do you access an uncataloged dataset in a jcl?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
whats the diff bw the evaluate also and and?
What do you understand by jcl?