Given a input file with duplicates how to remove the
duplicate records from the file using JCL?
Answer Posted / sudee
//STEP10 EXEC PGM=SORT,REGION=1024K
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...,DISP=SHR
//SORTOUT DD DSN=...
//SYSIN DD *
SORT FIELDS=copy
SUM FIELDS=NONE
/*
//
| Is This Answer Correct ? | 25 Yes | 12 No |
Post New Answer View All Answers
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
Why include statement is used in a jcl?
what is the JCL statement consists of?
Is automatic restart possible in jcl?
How to alter the parameters for the existing gdg?
How dummy is used in jcl?
What is the function of //jcllib statement?
How does the jcl specify the job to os?
How can an in-stream dataset be terminated?
Why block size is multiple of lrecl in jcl?
How to submit jcl through a cobol program?
In job processing, what happens in execution stage?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed