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

Explain how can the submitting users racf authority be overridden in a job stream?

0 Answers  


What is the difference between static call & Dynamic call ?

3 Answers  


WORKING-STORAGE SECTION. 1 GROUP-ITEM. 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50. 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP. PROCEDURE DIVISION. MOVE ZERO TO GROUP-ITEM. ADD 50 TO AMOUNT-1. DISPLAY AMOUNT-1. STOP RUN.

1 Answers  


How do you designate a comment in JCL?

1 Answers  


how can we merge two input files from two different jobs into one output file ? Please ans any one ASAP?

1 Answers  


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


how do u see jobs submitted before ur job ?

1 Answers  


Are there any set of rules for the names of the steps used in a job?

0 Answers  


What are the common keyword parameters in both job and exec statements

4 Answers   Cap Gemini,


How to search strings in multiple dataset with conditions 'string1 & string2'?

1 Answers   IBM,


i) Difference between ps, esds, ii) Difference between lrecl, blksize among PS, PDS issues? i.e in jcl at dcb

2 Answers  


What are the parameters that are used in creating a gdg?

0 Answers  


Categories