AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE
DUPLICATES HOW TO REMOVE THE DUPLICATE FILES IN JCL? CAN I
GET THE PROGRAM FOR THIS

Answers were Sorted based on User's Feedback



AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE F..

Answer / girish kumar

Yes, Sort will do it for u.
//........Pgm=sort
........
.........
.........
//sysin DD *
sort fields=copy
SUM FIELDS=NONE
/*

Is This Answer Correct ?    5 Yes 0 No

AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE F..

Answer / ksingla.vikas

A Sort program will do that for you. Just write
sumfiled=NONE. This will remove the duplicates for you.

Is This Answer Correct ?    2 Yes 0 No

AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE DUPLICATES HOW TO REMOVE THE DUPLICATE F..

Answer / garry

Yes, Sort will do it for u.
//........Pgm=sort
........
.........
.........
//sysin DD *
copy (complete statement)
SUM FIELDS=NONE
/*

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More JCL Interview Questions

How can you execute a COBOL program via SYSIN in JCL?

1 Answers  


Can you delete the GDG base without deleting GDG generations ?

7 Answers   Cap Gemini,


Is Default for MSGCLASS = (1,1) ?

2 Answers   IBM,


what happens if job falls in loop ? how to resolve it ?

3 Answers   Patni,


I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?

10 Answers   iGate,


In My job I have 15 procs.and in each proc i have 3 steps. i want to execute 3 step in proc 10.is it possible? if possible how?

2 Answers   HP,


what are the technical terms for // /* in jcl

3 Answers   Cap Gemini,


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


Explain the function of the steplib dd statement?

0 Answers  


What statement marks the end of an in-stream or catalogued procedure?

1 Answers  


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

0 Answers  


A file has dta in S9(09) COMP format. How do I move the data into a character field X(10)?

2 Answers  


Categories