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
 

 

Method to compare 2 records and set a return code

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
michele_mimi

New User


Joined: 22 Feb 2008
Posts: 7
Location: Rome, Italy

PostPosted: Thu Oct 07, 2010 1:34 pm    Post subject: Method to compare 2 records and set a return code
Reply with quote

There is an method that compare one record from file A with another record from file B (each file have only one record)
and set a return code = 4 if the fields are equals and another return code if the fields are different ?

Thanks in advance.

P.S. : Sorry for my orrible english .....
Back to top
View user's profile Send private message

acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Oct 07, 2010 2:19 pm    Post subject: Reply to: Method to compare 2 records and set a return code
Reply with quote

try ISRSUPC (3.12 or 3.13) .

Code:
12 SuperC      Compare data sets                             (Standard Dialog)
13 SuperCE     Compare data sets Extended                    (Extended Dialog)
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Thu Oct 07, 2010 2:21 pm    Post subject:
Reply with quote

ISRSUPC has a RC=1 for differences and zero for no differences.
Back to top
View user's profile Send private message
michele_mimi

New User


Joined: 22 Feb 2008
Posts: 7
Location: Rome, Italy

PostPosted: Thu Oct 07, 2010 2:23 pm    Post subject:
Reply with quote

Ok, Thanks to all !!!!! icon_smile.gif
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: Thu Oct 07, 2010 2:28 pm    Post subject: Re: Method to compare 2 records and set a return code
Reply with quote

michele_mimi wrote:
P.S. : Sorry for my orrible english .....
That's OK, most of us English are 'orrible icon_lol.gif
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 -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


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