View previous topic :: View next topic
|
Author |
Message |
naveen_amudalapelly Warnings : 1 New User
Joined: 15 Oct 2004 Posts: 16
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 160 Location: Toronto, Canada
|
|
|
|
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 |
|
|
naveen_amudalapelly Warnings : 1 New User
Joined: 15 Oct 2004 Posts: 16
|
|
|
|
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 |
|
|
honeypria567
New User
Joined: 20 Nov 2006 Posts: 14 Location: chennai
|
|
|
|
Hi All,
we can compare two dataset by using JCL Utility IEBCOMPR
regards,
Honey |
|
Back to top |
|
|
mikayag
New User
Joined: 10 Mar 2005 Posts: 16
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Pravin Raj
New User
Joined: 16 Mar 2007 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
COMP (or COMPARE) is not a TSO command; it is an ISPF Editor Primary Command.
O. |
|
Back to top |
|
|
|