How to get the last but one duplicate record of the file
using Sort?

Answer Posted / vikas pujar

Sort Dataset SORTXSUM will hold the duplicate records if in
Sysin dd *, we give option XSUM, after SUM FIELDS=NONE. So
last but one record in dataset should be the answer.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the rules employed while naming the steps in a job?

663


Is it possible to define dd statements as you want?

646


Explain the function of //cntl statement?

660


How does jcl act on code(if you take a cobol program)?

711


which parameter is used to check the syntax of a jcl without executing it?

801






What is the function of the dd dcb keyword?

830


What are the parameter we cannot use in procedure?

642


Explain the hierarchy levels in jcl?

1120


Does jcl support automatic restart?

763


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

807


Brief description of inline procedure of jcl.

687


what are the various stages of job processing?

741


what is a jcl?

691


Give the syntax of job specifying jcl statement.

640


Is automatic restart possible in jcl?

743