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
 

 

Can we use two keys from the same file in SPLICE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Can we use two keys from the same file in SPLICE
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Tue Oct 23, 2012 11:52 am    Post subject: Reply to: Can we use two keys from the same file in SPLICE
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    Post subject: Re: Reply to: Can we use two keys from the same file in SPLI
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

Moderator


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

PostPosted: Tue Oct 23, 2012 12:02 pm    Post subject:
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    Post subject:
Reply with quote

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Tue Oct 23, 2012 12:06 pm    Post subject: Reply to: Can we use two keys from the same file in SPLICE
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

Moderator


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

PostPosted: Tue Oct 23, 2012 12:11 pm    Post subject: Re: Reply to: Can we use two keys from the same file in SPLI
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    Post subject: Re: Reply to: Can we use two keys from the same file in SPLI
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7232

PostPosted: Tue Oct 23, 2012 12:21 pm    Post subject: Reply to: Can we use two keys from the same file in SPLICE
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    Post subject: Re: Reply to: Can we use two keys from the same file in SPLI
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    Post subject:
Reply with quote

Saini19,

Check this link which explains SPLICE in detail with examples

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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