Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to compare two datasets by sending tso commands

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
naveen_amudalapelly
Warnings : 1

New User


Joined: 15 Oct 2004
Posts: 16

PostPosted: Tue Nov 16, 2004 8:02 pm    Post subject: How to compare two datasets by sending tso commands
Reply with quote

Hi

Could any one please let meknow how to compare two data sets

and Could any one also help me by sending tso commands document

Thanks in advacce


Naveen
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue Nov 16, 2004 8:29 pm    Post subject:
Reply with quote

Use IBM's SuperC program, which is available under ISPF in the Utilities menu (option 3), option 12 (SuperC Compare data sets).

There are also third-party products available, such as Comparex.
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Tue Nov 16, 2004 8:35 pm    Post subject:
Reply with quote

Hi Naveen,

you can use option 3.13 (SuperCE) to compare two data sets

There you have compare type, select apropriate one,
-------------------------------------------------------------

Compare Type
2 1. File
2. Line
3. Word
4. Byte


if you want mention some conditions for compare type E on the command prompt and enter your crieteria

Let me know if you find any difficulty
Back to top
View user's profile Send private message
naveen_amudalapelly
Warnings : 1

New User


Joined: 15 Oct 2004
Posts: 16

PostPosted: Fri Nov 19, 2004 8:39 pm    Post subject:
Reply with quote

Hi jz1b0c,

This information has given good result for me.

and also could you please tell me how to write the records from first dataset into second data set which is not having the remaining records when we comapare the two datesets.

Thanks in advance

Naveen
Back to top
View user's profile Send private message
honeypria567

New User


Joined: 20 Nov 2006
Posts: 14
Location: chennai

PostPosted: Tue Feb 20, 2007 4:51 pm    Post subject: Re: How to compare two dataset
Reply with quote

Hi All,

we can compare two dataset by using JCL Utility IEBCOMPR



regards,
Honey
Back to top
View user's profile Send private message
mikayag

New User


Joined: 10 Mar 2005
Posts: 16

PostPosted: Wed Feb 28, 2007 10:40 pm    Post subject:
Reply with quote

Hi All,

This compare discussion is great.

I have a list of sequential files that needs to be compared against one file.

e.g.:

XXXXX.YYYYY.ABCD001
to be compared against
XXXXX.YYYYY.ABCD001.BAK

and I need to produce an output file containing records which do not exist
in the first file.

However, thsi can be tedious because I have several sets of files that needs to be compared. Take this set of example below:

XXXXX.YYYYY.ABCD001 / XXXXX.YYYYY.ABCD001.BAK
XXXXX.YYYYY.ABCD002 / XXXXX.YYYYY.ABCD002.BAK

:
:
XXXXX.YYYYY.ABCD999 / XXXXX.YYYYY.ABCD999.BAK


How can I automate this process? I was thinking of creating a program that will process these files in a loop, each time incrementing by 1. However, the JCl needs a definite name for the files we specify.

Any workaround?
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Mar 01, 2007 2:11 am    Post subject:
Reply with quote

Hello,

You can set up a small PROC that compares the common file against a file what has the 001-999 specified at run time. Use a symbolic parameter for the number part of the dataset name.

When you run this, you will still need an EXEC statement for each, but with a little bit of editing, you will have a "whole" set very quickly - after you create the "whole" set, you could remove any that you wanted to skip or did not exist.

The basic EXEC would be:
Code:
//S000   EXEC MYCOMPR,NBR=000


Repeat that statement 9 more times and change the Stepname and NBR from 000 to 009. Repeat some more until you have 100 EXEC statements. One hundred steps at a time should be enough. Depending on your situation, you may want to run only 10 at a time - take your pick.

You can then change the "//S0" to whatever hundreds group you want and change "R=0" the same way for each of the hundreds.
Back to top
View user's profile Send private message
Pravin Raj

New User


Joined: 16 Mar 2007
Posts: 2
Location: chennai

PostPosted: Tue Mar 20, 2007 11:56 am    Post subject:
Reply with quote

By honeypriya,
we can compare two dataset by using JCL Utility IEBCOMPR

She is right but i jst want to add somemorethings in that:

IEBCOMPR: mainly used to check whether it is PS or PDS.



Syntax in the JCL: COMPARE TYPORG = PS / PDS -> Return code

Note: If Return Code = 0,files are of same type(Either they r Ps or PDS)

If Return Code = 8,files are of different type(May b one Ps and other is PDS)
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Tue Mar 20, 2007 7:09 pm    Post subject: Re: How to compare two datasets by sending tso commands
Reply with quote

hey,,

u can use this TSo command also.

Go inside the file(File1) u want to compare in View or Edit mode.

Then give COMP X 'FILE2'


This will show where all the difference lies between file1 and file2.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Mar 20, 2007 8:00 pm    Post subject:
Reply with quote

COMP (or COMPARE) is not a TSO command; it is an ISPF Editor Primary Command.

O.
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 Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us