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

Give syntax for these DFSORT commands


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

New User


Joined: 14 Mar 2005
Posts: 4

PostPosted: Tue Jul 12, 2005 1:21 pm
Reply with quote

please what is the maening of these command line .
and give sytanax for these commands.
Code:

//TOOLIN DD *
  COPY FROM(IN1) TO(TMP1) USING(CPY1)
  COPY FROM(IN2) TO(TMP1) USING(CPY2)
  SPLICE FROM(TMP1) TO(OUT) ON(1,4,CH) WITH(6,4)
/*
//CPY1CNTL DD *
   OUTREC FIELDS=(1:1,4,11:6,4,19:X)
/*
//CPY2CNTL DD *
   OUTREC FIELDS=(1:1,4,6:6,4,19:X)
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 Jul 12, 2005 9:17 pm
Reply with quote

These are DFSORT/ICETOOL control statements to do a SPLICE operation that combines fields from two different input file records into one output record.

The first COPY operator reformats the IN1 records to look like this and puts them in TMP1 (b for blank):

Code:

fld1bbbbbbfld3bbbbb


The second COPY operator reformats the IN2 records to look like this and puts them in TMP1:

Code:

fld1bfld2bbbbbbbbbb


The SPLICE operator splices records from TMP1 with the same fld1 to get:

Code:

fld1bfld2bfld3bbbbb



For complete details on DFSORT's ICETOOL, see:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/6.0?DT=20050222160456
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 PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
Search our Forums:

Back to Top