Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I have 3 duplicate records in a file .
I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?

Answer Posted / vivek chandrasekaran

:
Use ICETOOL to solve the request in 1 step

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file
//OUT DD DSN=... output file
//TOOLIN DD *
SELECT FROM(IN) TO(OUT) ON(p,l,t) LASTDUP
/*

Where p - position, l - length, t-type(CH,PD..)

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which utility is used to run a cobol-db2 program?

1401


Explain the function of a dd statement?

1211


How would you understand error(execution phase)?

1253


What are the 4 fields in dd statement?

1275


In job processing, what happens in conversion stage?

1197


what are the various stages of job processing?

1284


How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY

1383


How to submit jcl through a cobol program?

1150


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

1170


how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?

1282


Can I send output of job to my remote device careerride123?

1137


How do you create a temporary dataset?

1186


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?

1310


How jcl work to handle various input output file operations?

1169


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1226