|
|
| Author |
Message |
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2039 Location: Israel
|
|
| Back to top |
|
 |
References
|
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1673 Location: germany
|
|
|
|
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 |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 632 Location: work
|
|
|
|
| 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 |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2353 Location: Mumbai, India
|
|
|
|
| Pedro wrote: |
| Just because you have it, does not mean anyone else has it. |
I'm also in 'not having' list. |
|
| Back to top |
|
 |
Marso
Senior Member
Joined: 13 Mar 2006 Posts: 356 Location: Israel
|
|
|
|
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 |
|
 |
Carol Mellinger
New User
Joined: 16 Mar 2007 Posts: 8 Location: State of Arizona
|
|
|
|
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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 9198 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
Carol Mellinger
New User
Joined: 16 Mar 2007 Posts: 8 Location: State of Arizona
|
|
|
|
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 |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 9198 Location: 221 B Baker St
|
|
|
|
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:
http://gsf-soft.com/Documents/AMBLIST.sample1.shtml |
|
| Back to top |
|
 |
Carol Mellinger
New User
Joined: 16 Mar 2007 Posts: 8 Location: State of Arizona
|
|
|
|
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 |
|
 |
Carol Mellinger
New User
Joined: 16 Mar 2007 Posts: 8 Location: State of Arizona
|
|
|
|
| OK, found info thanks to google. AMBLIST is a utility that allows you to look at the internals of load modules, object code and special areas within load modules and link pack area. Thanks a bunch.....this will do the job. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 9198 Location: 221 B Baker St
|
|
|
|
Hi Carol,
Good to hear it is working - thanks for letting us know
I fixed the typo in my oroginal jcl post. . .
You have a PM.
d |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 632 Location: work
|
|
|
|
| Quote: |
| auditing process that we do by viewing the load modules and looking for dates |
Sorry, but I do not think the dates are necessarily accurate. If someone is doing something nefarious, then that is one of the first things that will be spoofed.
Make sure only trusted individuals can update important datasets. Some datasets need to be read protected.
I am not sure how you would find unauthorized changes to key datasets. |
|
| Back to top |
|
 |
|
|