How to create delta file using JCL

Answer Posted / sarath

I need to create delta file(only changed records in 2nd file needs to be in delta file) for a daily feed please let me know how to do it. even if there is a single character change in new file the new record should replace the old one. consider first 5 characters as a key parameter
example:
file-1
12345 abc dat1
12346 def dat2
12347 5ab ddd4

file-2
12345 abc dat1 --> same in both so no need of this record
12346 bbb dat2 --> minor changes in file-2 so it should be in output
13345 2gh dat3 --> record not at all present so this will be added to o/p

output:
12346 bbb dat2
13345 2gh dat3

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In job processing, what happens in execution stage?

696


how do you code a null statement?

775


What is the purpose of dd?

725


what is use of dcb parameter in dd statement?

769


What is the use of disp parameter?

650






How to alter the parameters for the existing gdg?

710


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

668


What are the 4 fields in dd statement?

740


Where & How Do You Code Identifier In Jcl?

695


What are the jcl procedures?

644


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?

713


what is use of disp parameter in dd statement?

659


What is timing concept in mainframe?

1658


I need exexution process for JCL programs

1847


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

779