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!!
Answer Posted / 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 |
Post New Answer View All Answers
What parameter directs the output of the job log dataset?
which utility is used to run a cobol-db2 program?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
how JCL works?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
in ways data can be passed to a COBOL program from JCL?
what are JCLLIB and STEPLIB in JCL?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
Explain how can an in-stream dataset be terminated?
Immediate Job opening for mainframe professionals in Keane Bangalore. Please find the below details: Organization: Keane India Location: Bangalore Skill: COBOL, JCL,VSAM,DB2,CICS,IMS,REXX,CLIST Exp: 1 to 4 years only Employment Type: Permenant Employee Note: If you have attended keane interview in past 6 months please ignore this job opening. Please respond to email id keanemfjob@gmail.com OR keanemfjob@yahoo.in with your latest resume and following details, We will contact you within 24 hours: Total IT Exp: Exp in Mainframe: Current CTC: Expected CTC: Notice Period:
How can the attributes of one sms dataset be copied to another dataset?
I need exexution process for JCL programs
what is the resolution for sb37 error
Where & How Do You Code Identifier In Jcl?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?