How to find the number of duplicates in a file using Sort?
Answer Posted / prachi
In order to copy eliminated duplicates into another file
using sort is as below:
//SORTXSUM DD DSN=----
:
:
:
:
//SYSIN DD *
SORT FIELDS = copy
SUM FIELDS =NONE,XSUM
/*
//
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Explain how can the attributes of one sms dataset be copied to another dataset?
What is the purpose of dd * statement in jcl?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
Explain the jcl exec statement?
which parameter is use to declare the name of dataset in dd statement?
Explain the hierarchy levels in jcl?
Name a few IBM utility programs, and explain its function.
WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99 VALUE 123.45. PROCEDURE DIVISION. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. compiler : IGYGR1080-S A "VALUE" clause literal was not compatible with the data category o subject data item. The "VALUE" clause was discarded. WORKING-STORAGE SECTION. 77 W-A PIC 9(3)V99 VALUE 23.75. 77 W-B PIC ZZ9V99. PROCEDURE DIVISION. MOVE 123.45 TO W-B. MOVE W-A TO W-B. DISPLAY W-B. STOP RUN. 2375
What is condition checking in jcl? Is this possible?
Explain the function of dd name parameter with a 2 part structure; audit.report?
What are steplib and joblib? What for they are used?
My Question is 1. How to cound no. of records in JCL. Please explain with an example. 2. How to execute only odd steps in JCL? I know EDIT TYPE = Inculde, Step Name = 1,3,5 and COND code for all even step. Anyone knows other than this.
Is their any set of rules for dd? Explain.
Explain the function of dd disp parameter?
What do you understand by jcl?