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
How can unused space allocation be returned to the system when a dataset is closed?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
Define concatenating?
How do you overcome this limitation ?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
Where can program checkpoints be stored for use in a restart?
Explain the function of a dd statement?
how do you access an uncataloged dataset in a jcl?
What is the difference between the positional and keyword parameters? Give examples.
what is “Cond= even” and “Cond=only”?
which utility is used a dummy utility?
What is job control language?
What is the purpose of disp parameter?
Explain about ISPF/TSO Commands
What is the function of a dd statement?