Hi,
I have a requirement
File A : I have 6 records out of which 4 are same.
File B: I have 8 records out of 6 records are same.
The 4 records in FILEA and 6 records in FILE B are same. If
we substract we will get two records, I need these two
records in output file
This is because to remove the duplicates from the database.
Through easytrieve we can compare but for that there should
not duplicates, but in my file I have duplicates.
Thanks in advance!!
Answers were Sorted based on User's Feedback
Answer / vijay
It is simple, you no need to code ezt pgm for eliminating
the duplicate records. Try these 2 steps to eliminate the
duplicates.
Step-1: Use sort on file 1 and use sumfields=none on the
key field, then you can get only 2 records in the output
file.
Step-1: Follow the above procedure for the file 2.
Is This Answer Correct ? | 8 Yes | 1 No |
Answer / sreejith
read file-1
1-a
2-b
3-c
4-d
5-e
6-f
also move record in to table1 that is decalred in ws with
legth 14 until read all the record from file-1
then
read file-2
move each record into table1 and variables g,h....up to for
8 records
now the table contain 16 item
then use legth variable l
then compare each variable from table for each matching
incriment the variabe length. after searching all item from
table
compare the legth with 1
if it is greater than one eliminate
other wise write it to the output file-3
ok
Is This Answer Correct ? | 0 Yes | 0 No |
How to see the COMP3 value(packd decimal)
how can i use the parameters decalred in main pgm in sub pgm
how to edit a tape dataset ? asked in wipro
In my job I have 6 steps. Step01,02,03...step06. after executing step02 i want to skip step03 and want to execute step04. and once step04 is done then I want to go back and execute step03. once step03 is completed I want execute step05, 06 and so on... can any one tell me how do i do that???
How do you skip a particular step in a proc/JOB?
What is meant by S0C7 system abend code?
I have 15 flat files. each record in the files have the monthly salary for 12 months with the employee number. Now I want to concatenate the 15 files such that for the employee numbers that are common the o/p file should have only one record and the salaries should be concatenated to that record. How can we do it with JCL?
what is a MODELDSCB?
How do You skip a Step In JCL?
What do you understand by the term notcat 2 – gs?
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?