Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to write the remaing records into second data set

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
naveen_amudalapelly
Warnings : 1

New User


Joined: 15 Oct 2004
Posts: 16

PostPosted: Fri Nov 19, 2004 8:48 pm    Post subject: How to write the remaing records into second data set
Reply with quote

Hi,

could any one please tell me how to write the records from first dataset to second data set which is not having the remaining records when we comapare the two datesets.

Thanks in advance

Naveen
Back to top
View user's profile Send private message

naveen_amudalapelly
Warnings : 1

New User


Joined: 15 Oct 2004
Posts: 16

PostPosted: Mon Nov 22, 2004 1:05 pm    Post subject:
Reply with quote

hi

Till now i didnt get any ans since 3 days

Is ibmmainframe experts forum is working?

icon_sad.gif
Back to top
View user's profile Send private message
lramani

New User


Joined: 03 Nov 2004
Posts: 21
Location: NOIDA, India

PostPosted: Wed Nov 24, 2004 9:43 am    Post subject:
Reply with quote

Hi Naveen,
Can u please put more clarity on what u want.....

Is it like u have two files A & B.
There is some mismatch between the two files....for example

File A has records
123456
abcdef
qwerty
987654

File B has records
123456
abcdef
987654

You want to write the qwerty record to file B. Is this your requirement??

If this is ur requirement ..what surprises me is...if file B has to be same as file A. Then just use COMPAREX to check if the two files are matching. If they are not directly use the file A. I hope u r getting what I mean...

If this not your requirement then can u please be more specific. May be the forum will reply to ur query.
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Thu Nov 25, 2004 9:49 pm    Post subject: Re: How to write the remaing records into second data set
Reply with quote

naveen_amudalapelly wrote:
Hi,

could any one please tell me how to write the records from first dataset to second data set which is not having the remaining records when we comapare the two datesets.

Thanks in advance

Naveen


Please frame your question clearly. otherwise state some examples.
Back to top
View user's profile Send private message
jz1b0c

Active User


Joined: 25 Jan 2004
Posts: 160
Location: Toronto, Canada

PostPosted: Thu Nov 25, 2004 9:54 pm    Post subject: Re: How to write the remaing records into second data set
Reply with quote

naveen_amudalapelly wrote:
Hi,

could any one please tell me how to write the records from first dataset to second data set which is not having the remaining records when we comapare the two datesets.

Thanks in advance

Naveen


Use this cobol logic which will sovle the problem

EVALUATE TRUE

WHEN KEY-FILE1 < KEY-FILE2
KEY-FILE1 not present in FILE 2, Do what ever you want
WHEN KEY-FILE2 < KEY-FILE1
KEY-FILE2 not present in FILE1, DO what ever
WHEN KEY-FILE1 = KEY-FILE2
This record is present in both the files.
END-EVAluate.


There are solutions using SORT, but your question is not clear. however use above logic it will give the solution.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us