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
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
Explain the job statement in jcl?
how would you create a temporary dataset? And where will you use them?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What is the function of dd disp parameter?
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 JCL?
What are s0c1, s0c4, s0c5, s0c7 and socb?
when does a dataset go uncataloged?
In sms datasets, what is the function of the dd mgmtclas keyword?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
Name a few IBM utility programs, and explain its function.
What statement can be used to send data to another mvs jes3 node?
Explain dd statement in jcl?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?