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

Can we use two keys from the same file in SPLICE


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Saini19

New User


Joined: 12 Apr 2012
Posts: 23
Location: Singapore

PostPosted: Tue Oct 23, 2012 11:47 am
Reply with quote

I have 2 i/p fileS:

I/p file 1 :

--col1-----col2--col3
123423,24326789,35375
233526,35353535,36363
279596,56767686,78787
345672,46363636,57575

I/p file 2:
--col1----col2
12342324326789
24424412555125
34567246363636

and want the o/p file as:

--col1-----col2--col3
123423,24326789,35375
345672,46363636,57575

I am using two keys , key1 - col1 nd key2 - col2

How can i use two keys in SPLICE.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 23, 2012 11:52 am
Reply with quote

Why do you want to use SPLICE not JOINKEYS?

Please run the below and paste the sysout, in the Code tags. It'll tell us your product level.

Code:
//S1 EXEC PGM=ICEMAN
//SYSOUT   DD SYSOUT=*
//SORTIN DD *
RECORD
/*
//SORTOUT DD DUMMY
//SYSIN   DD   *
  OPTION COPY
/*
Back to top
View user's profile Send private message
Saini19

New User


Joined: 12 Apr 2012
Posts: 23
Location: Singapore

PostPosted: Tue Oct 23, 2012 11:59 am
Reply with quote

Bill Woodger wrote:
Why do you want to use SPLICE not JOINKEYS?


Its project requirement, i have to use SPLICE only. icon_sad.gif
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Oct 23, 2012 12:02 pm
Reply with quote

Quote:
Its project requirement, i have to use SPLICE only.


Project need or Testing your skills need or Homework need ?
Back to top
View user's profile Send private message
Saini19

New User


Joined: 12 Apr 2012
Posts: 23
Location: Singapore

PostPosted: Tue Oct 23, 2012 12:04 pm
Reply with quote

Its project need.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 23, 2012 12:06 pm
Reply with quote

We've not seen your sysout yet.

"Hey, you should use a high-speed train for that."

"No, can't. Project says I have to use a horse-and-cart".
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Tue Oct 23, 2012 12:11 pm
Reply with quote

Bill Woodger wrote:

"Hey, you should use a high-speed train for that."

"No, can't. Project says I have to use a horse-and-cart".


May be Project leads are not aware there is High-speed train icon_wink.gif
Back to top
View user's profile Send private message
Saini19

New User


Joined: 12 Apr 2012
Posts: 23
Location: Singapore

PostPosted: Tue Oct 23, 2012 12:13 pm
Reply with quote

Bill Woodger wrote:
We've not seen your sysout yet.

"Hey, you should use a high-speed train for that."

"No, can't. Project says I have to use a horse-and-cart".


See dude its not in my hands, so can't do annything..
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Oct 23, 2012 12:21 pm
Reply with quote

OK.... just go with it, then.

You can specify multiple keys on SPLICE. Multiple ONs, WITHs. It's all in the manual.
Back to top
View user's profile Send private message
Saini19

New User


Joined: 12 Apr 2012
Posts: 23
Location: Singapore

PostPosted: Tue Oct 23, 2012 12:41 pm
Reply with quote

Bill Woodger wrote:
OK.... just go with it, then.

You can specify multiple keys on SPLICE. Multiple ONs, WITHs. It's all in the manual.



Thanks for the solution... icon_smile.gif
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Oct 23, 2012 9:46 pm
Reply with quote

Saini19,

Check this link which explains SPLICE in detail with examples

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA60/7.16?
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts DFSORT Join Keys Controlcard DFSORT/ICETOOL 4
No new posts To Sort detail records in a file with... SYNCSORT 5
Search our Forums:


Back to Top