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
 

 

SPICE query

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
itmanand

New User


Joined: 18 Dec 2008
Posts: 24
Location: Newyork

PostPosted: Thu Sep 10, 2009 4:34 am    Post subject: SPICE query
Reply with quote

Can one of you explain what the below statement does?

SPLICE FROM(FILE1) TO(OUT1) ON(12,8,CH) WITH(20,47)
WITHALL USING(CTL1)

The CTL1 contains
OUTFIL FNAMES=OUT1,OMIT=(80,1,CH,EQ,C'B'),OUTREC=(1,66)
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Sep 10, 2009 4:51 am    Post subject:
Reply with quote

That's difficult without seeing the complete DFSORT/ICETOOL job since there's probably more to it then you're showing.

Where did you find these statements? What does the complete job look like? What does the input look like?

Just going by what you show, whenever records with the same value in positions 12-19 are found, the base record (first record with the value) is spliced in turn with each overlay record (second record with the value, third record with the value, etc). Each spliced record consists of the base record overlayed with positions 20-66 from the overlay record.

The OUTFIL statement is performed after the SPLICE. It omits any output records that have a 'B' in 80 and ensures that the output records only contain positions 1-66.

For complete details on the SPLICE operator of DFSORT's ICETOOL with examples, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA40/6.14?DT=20090527161936
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 Join in SQL Query vickey_dw DB2 2 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
This topic is locked: you cannot edit posts or make replies. Db2 SQL query to convert rows into co... subratarec DB2 5 Thu Nov 17, 2016 4:51 pm


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