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
Explain about ISPF/TSO Commands
What do you know about jcl?
Why block size is multiple of lrecl in jcl?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
How can unused space allocation be returned to the system when a dataset is closed?
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
Explain how can the attributes of one sms dataset be copied to another dataset?
How to submit jcl through a cobol program?
What is the function of the dd mgmtclas keyword in sms datasets?
which utility is used to sort a file in jcl?
What is multithreading in jcl?
How can a fb file convert to vb file using sort program?
How jcl is used for testing batch programs?
What are steplib and joblib?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?