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
which utility is used to run a cobol-db2 program?
Explain the function of a dd statement?
How would you understand error(execution phase)?
What are the 4 fields in dd statement?
In job processing, what happens in conversion stage?
what are the various stages of job processing?
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
How to submit jcl through a cobol program?
what EXEC statement is and what is the syntax of EXEC statement used in JCL?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
Can I send output of job to my remote device careerride123?
How do you create a temporary dataset?
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?
How jcl work to handle various input output file operations?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?