I need to compare two VSAm files. In input VSAM file some
fields are updating and the updated feilds are coming into
the output file. now i need to compare these two files with
respect to a perticular field. Please suggest a suitable
JCL code me.

Answers were Sorted based on User's Feedback



I need to compare two VSAm files. In input VSAM file some fields are updating and the updated feil..

Answer / sunil

IEBCOMPR can be used for comparing the PS and PDS members.
Vsam files can be comparewd by
1 - unloading trhe vsam to two PS files and comparing using
IEBCOMPR....

2. is to use the ISRSUPC utility
5:03:06 AM◄//SUPERC EXEC PGM=ISRSUPC,
// PARM=(CHNGL,LINECMP,
// '','')
//NEWDD DD DSN=ADMT.TEST.BASE,DISP=SHR
//OLDDD DD DSN=ADMT.TEST.BASEB,DISP=SHR
//*OUTDD DD SYSOUT=*
//OUTDD DD DSN=ADMT.TEST.OUTDD,DISP=(NEW,CATLG,DELETE),
// UNIT=TEST,SPACE=(CYL,(1,5),RLSE),
// DCB=(BLKSIZE=270,LRECL=270,RECFM=FB)
//SYSIN DD *
CMPCOLM 1:270
WIDE
/*
//*



3.
by using the insync tool to compare the vsam files

Is This Answer Correct ?    0 Yes 0 No

I need to compare two VSAm files. In input VSAM file some fields are updating and the updated feil..

Answer / giri12

You can use IEBCOMPR utility.

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More JCL Interview Questions

How many parameters are there to a DISP statement and what are their uses ?

3 Answers  


wht r different types of sorts ?

1 Answers   L&T,


lines(1,cancel)??What is meant by that??Plz explain it....

1 Answers   IBM,


can we have more than one job in a single job card that is we are specifying only one 'job' statement in the jcl.

7 Answers   Accenture,


What is a S0C4 error ?

2 Answers  


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

0 Answers   IBM,


can we write a proc with in a proc

4 Answers   IBM,


hi in one of the interview one asked me how to submit a job from cobol?as well as how to submit a jcl from CICS? can u pls any one tell me..

1 Answers   CTS,


how can u identify the db2 from jcl ?

2 Answers   TCS,


How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?

0 Answers  


i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to another gdg which have version 1 or to the base gdg itself can anyone give me the code pls ?

4 Answers   IBM,


if we give TIME=0 how many sec that job/step

13 Answers  


Categories