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: 4649
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: 4649
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm


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