Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Compare two datasets

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Compare two datasets
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

Moderator Team Head


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

PostPosted: Mon Mar 09, 2009 3:46 pm    Post subject: Reply to: Compare two datasets
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    Post subject: Re: Reply to: Compare two datasets
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

Moderator Team Head


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

PostPosted: Mon Mar 09, 2009 3:55 pm    Post subject: Reply to: Compare two datasets
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 09, 2009 4:04 pm    Post subject:
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    Post subject: Re: Reply to: Compare two datasets
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 09, 2009 4:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us