IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can we do splice operation without a common key?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
thoulath

New User


Joined: 15 Sep 2010
Posts: 18
Location: chennai

PostPosted: Wed Sep 15, 2010 3:00 pm
Reply with quote

Hi can we do splice operation without a common key?
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Wed Sep 15, 2010 4:52 pm
Reply with quote

u need to mention the ON parameter in splice .. check the document
Back to top
View user's profile Send private message
Prasun De

New User


Joined: 17 Jan 2008
Posts: 28
Location: Kolkata, INDIA

PostPosted: Wed Sep 15, 2010 5:41 pm
Reply with quote

Post your requirement clearly..
May be you can utilize some other option... Why you need Splice without common key?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 15, 2010 7:53 pm
Reply with quote

Hello,

Is the same question as your other topic named Merge two records without a common field?

Posting duplicates is the fastest way to get warned or banned. . .

If you explain why you believed it acceptable to re-post your question, do let us know otherwise this needs to be deleted.

d
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 577
Location: USA

PostPosted: Wed Sep 15, 2010 8:15 pm
Reply with quote

thoulath wrote:
Hi can we do splice operation without a common key?


To answer your question, Yes you can do that but you would have to generate common key based on your requirement. An example of the requirement would to match 1st record of File1 with 1 st record of File2. You don't have a common key for the files. In this case, you would add SEQNUM to both the files and then perform SPLICE operation with SEQNUM field defined as ON fields.

If you need something specific, please provide some example of the input data and your expected output.

Thanks,
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Sep 15, 2010 10:52 pm
Reply with quote

SPLICE requires a key for the comparison so you can't do a SPLICE without a key. However, you can add a key to each file to do the SPLICE on and then remove it.

See the "Join fields from two files record-by-record" Smart DFSORT Trick at:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094

for different ways to do this with DFSORT.
Back to top
View user's profile Send private message
thoulath

New User


Joined: 15 Sep 2010
Posts: 18
Location: chennai

PostPosted: Thu Sep 16, 2010 2:23 pm
Reply with quote

@dick scherrer
I tried to post the question in a different topic which was related to SPLICING. By mistake it has been posted as a separate topic. this was done mistakenly. I dont know how to delete this topic now. Pls help.
Back to top
View user's profile Send private message
thoulath

New User


Joined: 15 Sep 2010
Posts: 18
Location: chennai

PostPosted: Thu Sep 16, 2010 2:25 pm
Reply with quote

Those who are ready to reply to my questions pls do reply for the queries under the topic "Merge two records without a common field"
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Sep 16, 2010 7:20 pm
Reply with quote

Hello,

Quote:
By mistake it has been posted as a separate topic. this was done mistakenly. I dont know how to delete this topic now. Pls help.
Not to worry icon_smile.gif

I've locked this topic (it can be deleted later).

Let us know if there are any problems/questions.

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Join multiple records using splice DFSORT/ICETOOL 5
This topic is locked: you cannot edit posts or make replies. COBOL-Common routine that contains al... COBOL Programming 4
This topic is locked: you cannot edit posts or make replies. Splice JCL into one record for DD sta... SYNCSORT 2
This topic is locked: you cannot edit posts or make replies. Splice multiple records into single r... DFSORT/ICETOOL 9
No new posts An write operation error - ABENDED S0... COBOL Programming 3
Search our Forums:

Back to Top