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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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