IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to move duplicate records to output file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhakarreddy.ibm
Warnings : 1

New User


Joined: 20 Apr 2009
Posts: 15
Location: chennai

PostPosted: Wed Jun 10, 2009 2:25 pm
Reply with quote

Hi,

I have the following scenario. I have given input and output files here.
Using the following input file i need to generate the output file as given below by using JCL only.

INPUT FILE

id name
1 a
1 b
2 c
3 d
3 e

OUTKPUT FILE

id name
1 a
1 b
3 d
3 e

kindly help me to solve above problem through the JCL.

Thanks in advance
sudha
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 10, 2009 2:48 pm
Reply with quote

Sigh

What are the file attributes of the input and output files.
What are the rules for excluding data.
What program would you like to use for this as JCL byitself accomplishes zero processing. It informs the OS of what program to execute and what files are used as input / output.
Have you searched the SORT forum for ideas.
And which SORT product do you use ?
Back to top
View user's profile Send private message
sudhakarreddy.ibm
Warnings : 1

New User


Joined: 20 Apr 2009
Posts: 15
Location: chennai

PostPosted: Wed Jun 10, 2009 4:47 pm
Reply with quote

Hi,

Assume the input and output file attributes are same.My output file should consist all duplicate records as shown above.I tried through sort.But i could n't get result.kindly help me to come out from this probleem.


Thanks in advance ...
sudha..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 10, 2009 5:03 pm
Reply with quote

Please post your efforts, and also answer the questions properly as the file attributes can alter the solution of the problem. We do not ask for information for fun, but because the information is required

Duplicate of what, you have not told us what fields are keys so how can we tell what is duplicate or not.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 0
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top