|
View previous topic :: View next topic
|
| Author |
Message |
Saini19
New User
Joined: 12 Apr 2012 Posts: 23 Location: Singapore
|
|
|
|
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 |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
Saini19
New User
Joined: 12 Apr 2012 Posts: 23 Location: Singapore
|
|
|
|
| Bill Woodger wrote: |
| Why do you want to use SPLICE not JOINKEYS? |
Its project requirement, i have to use SPLICE only.  |
|
| Back to top |
|
 |
Pandora-Box
Global Moderator
.jpg)
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
| Quote: |
| Its project requirement, i have to use SPLICE only. |
Project need or Testing your skills need or Homework need ? |
|
| Back to top |
|
 |
Saini19
New User
Joined: 12 Apr 2012 Posts: 23 Location: Singapore
|
|
|
|
| Its project need. |
|
| Back to top |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
Pandora-Box
Global Moderator
.jpg)
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
| 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  |
|
| Back to top |
|
 |
Saini19
New User
Joined: 12 Apr 2012 Posts: 23 Location: Singapore
|
|
|
|
| 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 |
|
 |
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
Saini19
New User
Joined: 12 Apr 2012 Posts: 23 Location: Singapore
|
|
|
|
| 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...  |
|
| Back to top |
|
 |
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
| Back to top |
|
 |
|
|