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

Is there any command to check wether the ps file is in sorted order?

2528


Where & How Do You Code Identifier In Jcl?

800


What is timing concept in mainframe?

1772


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

733


Is their any limit for data sets?

786






What is job control language?

704


when can a job time-out occur? How to overcome that?

843


Explain the function of //jcllib statement?

818


what is use of disp parameter in dd statement?

740


How can a stopped job be started again?

795


How can an in-stream dataset be terminated?

955


What is the function of the dd avgrec keyword in sms datasets?

940


List the different components of jcl statement?

783


Is automatic restart possible in jcl?

848


how you can direct the data to spool using SYSOUT option?

1009