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

i have step1,step2,step3 from where can i start coding cond parameter ?

2 Answers   Verizon,


How to execute step2,step1, step3 if step1,2,3 are in order

8 Answers   CSC,


What is COND=EVEN ?

9 Answers   IBM,


List in order the hierarchical levels of jcl?

0 Answers  


what is instream data

2 Answers   EDS,






how to count the number of members in pds?

2 Answers  


What is the difference between a symbolic and an override in executing a PROC?

2 Answers  


If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?

3 Answers  


what is the control cards?

3 Answers  


how to concatenate datasets

5 Answers   EDS,


How to get cursor position from system in CICS environment ?

8 Answers  


I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?

3 Answers   Wipro,


Categories