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

How to write/store the second duplicate while sorting


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
deepam25

New User


Joined: 14 Jul 2007
Posts: 3
Location: bangalore

PostPosted: Mon Aug 13, 2007 11:47 am
Reply with quote

in sort if we find duplicates it produce the first duplicate value hoe to store the 2 duplicate value
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Aug 13, 2007 9:05 pm
Reply with quote

Quote:
in sort if we find duplicates it produce the first duplicate value hoe to store the 2 duplicate value


Please show an example of the records in the input file and the expected output records. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file.
Back to top
View user's profile Send private message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Tue Aug 14, 2007 6:53 pm
Reply with quote

I tried to get a solution..

Code:

//S1     EXEC PGM=SORT                                           
//SORTIN    DD DSN=I/P
//SORTOUT   DD DSN=O/P         
//SYSOUT DD SYSOUT=*                                               
//SYSPRINT DD SYSOUT=*                                             
//SYSIN  DD *                                                       
  OPTION COPY                                         
  INREC  IFTHEN=(WHEN=INIT,OVERLAY=(81:SEQNUM,8,ZD,RESTART=(1,5))) 
  OUTFIL INCLUDE=(81,8,ZD,EQ,2)                                     
/*   


but stuck up with removing the seqnum from the output file.
Back to top
View user's profile Send private message
shankar.v

Active User


Joined: 25 Jun 2007
Posts: 196
Location: Bangalore

PostPosted: Tue Aug 14, 2007 7:12 pm
Reply with quote

Code:

  INREC OVERLAY=(81:SEQNUM,8,ZD,RESTART=(1,5))
  OUTFIL INCLUDE=(81,8,ZD,EQ,2),OUTREC=(1,80)
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Duplicate transid's declared using CEDA CICS 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top