View previous topic :: View next topic
|
Author |
Message |
neha rani
New User
Joined: 03 Jan 2007 Posts: 4 Location: bangalore
|
|
|
|
hi all
is there any utility in jcl to compare two files and write the differences in
third file ?
i tried using sort but tht didt work tht needs a sort key but i need to compare the whole records as i dont know where the changes are .
Thanks everybdy fer their help. |
|
Back to top |
|
|
sattar_engg Warnings : 1 New User
Joined: 23 Sep 2006 Posts: 5 Location: SE
|
|
|
|
hi,
you can use utility ISRSUPC
please find the jcl ....'
//star001 JOB MSGCLASS=T,MSGLEVEL=(1,1),NOTIFY=&SYSUID
//*MAIN ORG=NIADQ,CLASS=TEST
//SUPERC EXEC PGM=ISRSUPC,
// PARM=(DELTAL,LINECMP,
// '',
// '')
//NEWDD DD DSN=star.DATA.SALES.C.JCL(tempnew),
// DISP=SHR
//OLDDD DD DSN=star.old.pds(tempold),
// DISP=SHR
//OUTDD DD SYSOUT=(A)
//SYSIN DD *
*CMPCOLM 1:167 194:364 370:678
LSTCOLM 1:80
CMPCOLM 1:80
*CMPCOLM 101:125
/*
//
Abdul sattar
'Help others with out expecting any thing from the' |
|
Back to top |
|
|
neha rani
New User
Joined: 03 Jan 2007 Posts: 4 Location: bangalore
|
|
|
|
it seems tht my system doesnt recognize isrsupc utility i tried with tht
but it says invalid pgm name and thn it discard it .
can it happen tht systems doesnt recognize some utilities ?
is there no other way of doin it?
thank u |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Do you have ISPF?
O. |
|
Back to top |
|
|
neha rani
New User
Joined: 03 Jan 2007 Posts: 4 Location: bangalore
|
|
|
|
yep
i have ................ |
|
Back to top |
|
|
neha rani
New User
Joined: 03 Jan 2007 Posts: 4 Location: bangalore
|
|
|
|
thanks sattar_engg the utility worked |
|
Back to top |
|
|
sattar_engg Warnings : 1 New User
Joined: 23 Sep 2006 Posts: 5 Location: SE
|
|
|
|
if you have ISPf then
go to 3.13 and select Execution Mode as 2 i.e batch.
give your new and old data sets. press enter to get JCL and the utility it is using...
find attachment for the same
abdul sattar |
|
Back to top |
|
|
mfqueen
New User
Joined: 12 Oct 2010 Posts: 1 Location: Delhi
|
|
|
|
Hi , Could someone please explain the comparison programming for the sysin control card used in the above mentioned jcl as to how to compare two files.
Thanks in advance |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
ISPF option 3.12 (as well as all the ISPF 3.nn routines)
has excellent online help (PF1).
there is also the manual which can be found here if you can not find the PF1 key on your keyboard. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
mfqueen,
Hello and welcome to the forums.
If you have a new requirement on file comparison, you can start a new topic rather than replying to an old one. |
|
Back to top |
|
|
pullaiah.cts
New User
Joined: 02 Sep 2010 Posts: 50 Location: Pune
|
|
|
|
Hi sattar_engg,
Thanks for your code,it's working fine but I have one more question.Your code is listing all the differences between two files but If I want to compare FILE1 and FILE2 and write only the records((not the differences) that are not in the FILE1 then what's the code?
Please help me. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
pullaiah.cts wrote: |
Hi sattar_engg,
[...]
|
Last post he/she made was 14 November 2007. Don't wait up.
If you have a question, start a new topic, with the details, example of input/output. Makes things easier to follow |
|
Back to top |
|
|
|