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

IDCAMS REPLACE Functionality in SORT for VSAM files.


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

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Thu Jul 19, 2012 9:02 am
Reply with quote

Hi,

In SORT as per the manual
RESET - Specifies that SORT processes a VSAM output data set defined with REUSE as a NEW data set.
NORESET - specifies that SORT processes a VSAM output data set defined with REUSE as a MOD data set.

However when I tried to use NORESET option, SORT will fail if the same records(KEY) exists in the OUTPUT VSAM file.

Can you please help me to know if there are any options which can be used to get equivalent functionality of IDCAMS REPRO REPLACE command using SORT in single step?

Regards,
Chandra
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Jul 19, 2012 11:53 am
Reply with quote

Please show your Sort cards, and listcats of your input and output VSAM files.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 19, 2012 8:53 pm
Reply with quote

Hello,

I suspect this is intended rather than a problem. The VSAM file will not allow duplicates. . . You can't MOD duplicates onto the end of the VSAM file - they are still duplicates are they not?

I know of no "replace" option n the sort products.

Possibly i misunderstand.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Jul 20, 2012 2:03 am
Reply with quote

chandraBE wrote:

Can you please help me to know if there are any options which can be used to get equivalent functionality of IDCAMS REPRO REPLACE command using SORT in single step?

Regards,
Chandra


If you are dealing with KSDS then DFSORT does not have an option to replace.
Back to top
View user's profile Send private message
chandraBE

New User


Joined: 02 Feb 2010
Posts: 44
Location: Bangalore

PostPosted: Fri Jul 20, 2012 2:33 pm
Reply with quote

Thanks Dick scherrer and Kolusu for confirming this.
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top