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
What are the difference between jcl and jes?
what happens in conversion stage in job processing?
Is it possible to define dd statements as you want?
Define concatenating?
List the various advantages of using jcl language?
Can I send output of job to my remote device careerride123?
what are JCLLIB and STEPLIB in JCL?
What is the purpose of dd dummy statement?
What is the use of disp parameter?
Is their any set of rules for dd? Explain.
What is the significance of addrspc parameter in exec statement?
Is their any limit for data sets?
Explain how can a stopped job be started again?
How do you access an uncatalogued dataset in a jcl?
What is the function of //jcllib statement?