IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SUPERC is only showing me diffrences upto 133 bytes


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mainframe_techie

New User


Joined: 15 Jul 2007
Posts: 23
Location: India

PostPosted: Fri Oct 26, 2007 4:33 am
Reply with quote

Hi,

I am running SUPERC utility ( compare utility ) in batch mode.
My file size is 1000 bytes.
Superc's comparision is only showing me diffrences upto 133 bytes.
I also tried incresing the size of output to 1000 bytes, but still superc is showing the diffrences upto 133.

Can anybody please advise how can I see the comparision upto 1000 bytes ??

thanks,
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Oct 26, 2007 5:08 am
Reply with quote

You can't with SUPERC.

When I was in your situation, I ran SUPERC with one of the UPDATE options, in order to get the exact mismatch position. Then, I read SUPERC's output from REXX and display the actual records.

O.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Oct 26, 2007 10:38 am
Reply with quote

mainframe_techie,

Why dont you use FileAid's COMPARE option?
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Fri Oct 26, 2007 2:04 pm
Reply with quote

I prefer to do it from option 3.13. In 3.13, go to options and select EDIT STATEMENTS. write your matching condition and do compare.

KSK
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Oct 26, 2007 5:05 pm
Reply with quote

ksk -

I believe the the OP knows about that option. However, no matter how you invoke SUPERC (menu 3.13, batch job, programmatically) - the maximun length of the result is 205 (default is 133).

O.
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Fri Oct 26, 2007 5:12 pm
Reply with quote

Ofer,

My solution works if we know which fields are to be checked. and that also should be less than 133 characters.

E.g. If checking field is from position 200 to 255, we can provide this and see. If checking field is more than 133 characters, this solution won't work.

KSK
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Oct 26, 2007 6:26 pm
Reply with quote

KSK,

Quote:
My solution works if we know which fields are to be checked.

FA compare option shows the entire record, there is no need to know which fields to compared.
Back to top
View user's profile Send private message
mainframe_techie

New User


Joined: 15 Jul 2007
Posts: 23
Location: India

PostPosted: Tue Oct 30, 2007 8:46 pm
Reply with quote

Hi,

I know the EDIT statements option but the problem is using that max is 205 bytes.

We dont have File Aid in out Shop, hence that option is ruled out.

The position in the files can differ which I need to compare.

Please advise in option 3.13.

Thanks,
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Tue Oct 30, 2007 9:02 pm
Reply with quote

Quote:
We dont have File Aid in out Shop

Don't you use any file util in your shop?
Back to top
View user's profile Send private message
mainframe_techie

New User


Joined: 15 Jul 2007
Posts: 23
Location: India

PostPosted: Tue Oct 30, 2007 9:49 pm
Reply with quote

We use another tool called INSYNC. Its comparision is not that useful.

Thanks,
Back to top
View user's profile Send private message
Joel.B

New User


Joined: 13 Oct 2007
Posts: 5
Location: India

PostPosted: Wed Jul 09, 2008 1:28 pm
Reply with quote

Hi,

I want to compare 2 files.My requirement is i vl give record lenght of file dynamically.Please provide me if any body having code in REXX or COBOL.
Tired with ISRSUPC-Utility but not able to compare..Please guide me..

thanks in advance.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Wed Jul 09, 2008 4:04 pm
Reply with quote

Hi,
Joel.B wrote:
Please provide me if any body having code in REXX or COBOL.
Are you searching for a file-comparison program in COBOL ? And what does this
Quote:
My requirement is i vl give record lenght of file dynamically

mean ? How would you change LRECL "dynamically" ?


Joel.B wrote:
Tired with ISRSUPC-Utility but not able to compare
Hopefully, you've tried this option in SuperC
Code:
//SYSIN  DD *                                       
CMPCOLM 1:43  56:1000                             
/*                                                 

which selectively compares the columns from 1 to 43 & 56 to 1000.
Back to top
View user's profile Send private message
yogi.47eie

New User


Joined: 16 Aug 2006
Posts: 45
Location: india

PostPosted: Wed Jul 16, 2008 1:25 pm
Reply with quote

Hi
can't we use TSO COMP or COMP option in command lime to compare two files irrespective of the total length..
if you want to compare two files.
open file 1 in view mode.
type TSO COMP 'File 2' or COMP 'File 2 ' in command line.

i have tried this one number of times...
cheers
yogi
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jul 16, 2008 2:53 pm
Reply with quote

COMP is neither a TSO nor an ISPF command.

O.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Wed Jul 16, 2008 3:20 pm
Reply with quote

O,

I have also used TSO COMP to compare datasets. It is actually a TSO command.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Wed Jul 16, 2008 3:46 pm
Reply with quote

Can you please show it to me in the TSO/E Command Reference?

O.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 16, 2008 3:46 pm
Reply with quote

I am on ISPF 5.8, and just today learned about COMP.
from the TSO HELP COMP;
Code:
FUNCTION

          THE COMP COMMAND COMPARES THE CONTENTS OF THE LOGICAL
           RECORDS OF TWO SEQUENTIAL DATA SETS.   ANY DIFFERENCES
           FOUND ARE LISTED IN THE OUTPUT PRODUCED.


 SYNTAX

           COMP DSA DSB RECS(10) RTN() PRINT(A) SLIB() VS LG

    REQUIRED - DSA
               DSB
    DEFAULTS - RECS(10)
               PRINT(A)


 OPERANDS

           DSA DSB        SPECIFY THE NAMES OF THE TWO SEQUENTIAL
                          DATA SETS WHOSE RECORDS ARE TO BE
                          COMPARED.

   RECS(10)               SPECIFIES THE NUMBER OF UNEQUAL COMPARES
                          TO BE PROCESSED BEFORE THE TASK IS
                          TERMINATED.   IF RECS(C) IS SPECIFIED
                         A MESSAGE IS DISPLAYED ON THE TERMINAL
                        EACH TIME AN UNEQUAL COMPARE OCCURS.
                        THE RESPONSES TO THE TERMINAL MESSAGE
                        ARE S OR STOP,WHICH CAUSES THE PROGRAM
                        TO TERMINATE, AND C OR CONTINUE WHICH
                        CAUSES THE PROGRAM TO READ THE NEXT
                        RECORD FROM EACH DATA SET AND COMPARE THEM.

 RTN()                  SPECIFIES THE LOAD MODULE OF THE SUB-
                        ROUTINE WHICH THE USER MAY PROVIDE.   IF
                        A SUBROUTINE IS PROVIDED, THE USER MUST
                        ALLOCATE A FILE LIB FOR THE LIBRARY
                        CONTAINING THE MODULE, PRIOR TO EXECUTION.

 PRINT(A)               SPECIFIES WHERE THE OUTPUT IS TO GO.
                        * SPECIFIES THE TERMINAL; ANY OTHER SINGLE
                        CHARACTER SPECIFIES A SYSOUT CLASS; MORE
                        THAN ONE CHARACTER NAMES A DATA SET.

 SLIB()                 SPECIFIES AN OPTIONAL SUBLIBRARY CODE FOR
                        THE USER'S LOAD LIBRARY.

 VS                     SPECIFIES THAT VSAM DATA SETS ARE TO BE
                        COMPARED.

 LG                     SPECIFIES THAT LEDGERS VSAM DATA SETS WITH
                        CONTROL INTERVAL ACCESS ARE TO BE COMPARED.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Jul 16, 2008 11:07 pm
Reply with quote

Quote:
Can you please show it to me in the TSO/E Command Reference?

I think O's point was that it is not part of TSO, so it is not universal. It may be installed and work like any other 'TSO command', but it is not part of IBM's TSO product. Just because you have it, does not mean anyone else has it.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Jul 17, 2008 11:01 am
Reply with quote

Pedro wrote:
Just because you have it, does not mean anyone else has it.
I'm also in 'not having' list.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Jul 17, 2008 2:43 pm
Reply with quote

I tried "TSO COMP" and received the question:
IKJ56700A ENTER NAME OF DATASET TO BE COMPRESSED
so COMP stands for COMPress, not for COMPare...
Back to top
View user's profile Send private message
Carol Mellinger

New User


Joined: 16 Mar 2007
Posts: 8
Location: State of Arizona

PostPosted: Thu Oct 30, 2008 1:47 am
Reply with quote

Did you ever get an answer to the below problem? I did not see one.

Carol




mainframe_techie wrote:
Hi,

I am running SUPERC utility ( compare utility ) in batch mode.
My file size is 1000 bytes.
Superc's comparision is only showing me diffrences upto 133 bytes.
I also tried incresing the size of output to 1000 bytes, but still superc is showing the diffrences upto 133.

Can anybody please advise how can I see the comparision upto 1000 bytes ??

thanks,
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 30, 2008 2:35 am
Reply with quote

Hello Carol and welcome to the forum,

If memory serves (and as was posted earlier in the topic) 1000 bytes cannot be compared/displayed with SUPERC.

Are you with DoA, AHCCCS, ?
Back to top
View user's profile Send private message
Carol Mellinger

New User


Joined: 16 Mar 2007
Posts: 8
Location: State of Arizona

PostPosted: Thu Oct 30, 2008 3:16 am
Reply with quote

Hi Dick

I figured this out. We cannot change the output but I can copy the
load module using iebcopy, then scan it with a program to get what I
need. Thanks for your reply.

I work for the Office of Administration for the State of Arizona. We have an old mainframe system called AFIS that does all of the states accounting.

I am trying to automate some auditing process that we do by viewing the load modules and looking for dates. It will give you the member that was changed within a specified date but the dates and time of the last compile are always in different locations. Surprisingly it works alot but misses modules (dah! unformatted dataset). I am amazed it works as well as it does. ( I was trying to fix it so it worked all the time)

Thanks again....

carol
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Oct 30, 2008 5:26 am
Reply with quote

Hi Carol,

You might also look at a program called AMBLIST.

Code:

//AMBL      EXEC PGM=AMBLIST
//STEPLIB  DD DSN=SYS1.LINKLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//MYLOAD   DD DSN=THE.LOADLIB,DISP=SHR
//SYSIN    DD *
 LISTIDR DDN=MYLOAD,MEMBER=THEMEMBR
/*


If you do not specify a member, i believe you will get the whole library.

There's a sample output at this link:
gsf-soft.com/Documents/AMBLIST.sample1.shtml
Back to top
View user's profile Send private message
Carol Mellinger

New User


Joined: 16 Mar 2007
Posts: 8
Location: State of Arizona

PostPosted: Thu Oct 30, 2008 7:33 pm
Reply with quote

Hi Dick

I got a
AMB121I INVALID CONTROL STATEMENT -- PROCESSING TERMINATES

Is the command LISTDIR instead of LISTIDR. What is this anyway?
A have never heard of it. Where do you work?

Thanks,
Carol
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts COBOL program changes not showing up ... COBOL Programming 7
No new posts Masking variable size field - min 10 ... DFSORT/ICETOOL 4
No new posts total number of bytes PL/I & Assembler 10
No new posts exclude the 5 first lines for compare... TSO/ISPF 2
No new posts Remove additional information in SUPE... TSO/ISPF 10
Search our Forums:

Back to Top