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

Compare two datasets


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prateek_nanda

New User


Joined: 13 Jul 2007
Posts: 19
Location: Gurgaon

PostPosted: Mon Mar 09, 2009 3:37 pm
Reply with quote

Hi everyone,

I have a situation in hand where I need to compare two datasets and if they are identical then I have to set the return code to 10 otherwise a Normal return code of zero.

I am trying it since the morning but till now no luck..

Could you please help..

Thanks!!
Pratts
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Mar 09, 2009 3:46 pm
Reply with quote

What have you tried so far that isn't working?
Back to top
View user's profile Send private message
prateek_nanda

New User


Joined: 13 Jul 2007
Posts: 19
Location: Gurgaon

PostPosted: Mon Mar 09, 2009 3:52 pm
Reply with quote

superk wrote:
What have you tried so far that isn't working?


I tried ISRSUPC utility and to set return code in next step but it didnt served my purpose..
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Mar 09, 2009 3:55 pm
Reply with quote

That's what I was going to suggest. Why won't it work?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Mar 09, 2009 4:04 pm
Reply with quote

What is wrong with using the return codes given by ISRSUPC ?
Back to top
View user's profile Send private message
prateek_nanda

New User


Joined: 13 Jul 2007
Posts: 19
Location: Gurgaon

PostPosted: Mon Mar 09, 2009 4:09 pm
Reply with quote

superk wrote:
That's what I was going to suggest. Why won't it work?


It is setting the return code of IDCAMS to Zero but not the MAXCC. Actually I have got several steps in my JCL with condition code (0,NE) now all are getting skipped because of return code 1 which is coming from ISRSUPC .
below is the piece of code that I am using

//STEP012 EXEC PGM=ISRSUPC,
// PARM=(DELTAL,LINECMP,
// '',
// '')
//NED DD DSN=test1
// DISP=SHR
//OLDDD DD DSN=test2
// DISP=SHR
//OUTDD DD SYSOUT=(A)
//*
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SET MAXCC=0
/*

Please suggest me what to do.

Thanks!!
Pratts
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Mar 09, 2009 4:49 pm
Reply with quote

So what has the return code from IDCAMS have to do with the return code from ISRSUPC ?
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Compare two files with a key and writ... SYNCSORT 3
No new posts Compare latest 2 rows of a table usin... DB2 1
Search our Forums:

Back to Top