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

Using "ON" with multiple fields in SPLICE operator


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

New User


Joined: 14 Jul 2005
Posts: 2

PostPosted: Tue Apr 15, 2008 10:30 am
Reply with quote

Is is possible to put multiple fields in "ON" used in the Icetool splice operator?...I want to do a comparison between two files based on Multiple fields.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Apr 15, 2008 4:46 pm
Reply with quote

sagar,

Quote:
Is is possible to put multiple fields in "ON" used in the Icetool splice operator


Yes, you can ! Max of 10 ON fields can be used for matching.
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: Tue Apr 15, 2008 9:07 pm
Reply with quote

Right. To quote from the SPLICE description in "z/OS DFSORT Application Programming Guide" at:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA20/6.13?DT=20060615185603

Quote:
From 1 to 10 ON fields can be used for the fields to match on. At least one ON(p,m,f) field must be specified; all such ON fields specified will be used to determine the matching records to be spliced together.


You can access all of the DFSORT books online from:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
sagardeshmukh81

New User


Joined: 14 Jul 2005
Posts: 2

PostPosted: Wed Apr 16, 2008 11:57 am
Reply with quote

Got it....thankx a lot... icon_cool.gif

At first I was trying this....and got an error...

ON(1,11,CH,12,2,FI,14,10,CH,24,2,FI) -

Then got it corrected to...

ON(1,11,CH) ON(12,2,FI) ON(14,10,CH) ON(24,2,FI) -
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 Apr 16, 2008 9:50 pm
Reply with quote

You can't just guess at the syntax. You have to look it up in the manual.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top