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

SPLICE used to add matching column


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
akshaiya

New User


Joined: 17 Sep 2005
Posts: 49

PostPosted: Tue May 22, 2007 1:23 am
Reply with quote

I want to expand the message msg1,msg2 by matching it in the second file.
first file
Code:
9----+----0----+----1----+----2----+----3----+-
fileA   no       date ind       msg1  msg2
100054,000, ,20070503,N,       ,BBBB , AAAA    ,
100054,000  ,20071503,N,       ,AAAA , CCCC   ,
100054,000  ,20071503,N,       ,BBBB ,AAAA ,
100054,000  ,20072503,Y,       ,VVVV ,     ,
100054,000  ,20071503,Y,       ,MMMM ,     ,
100054,000  ,20070503,N,       ,QQQQ ,     ,


second file
Code:
AAAA        k1256 is missing
BBBB        achieved ydt
CCCC        result set to NO
DDDD        cleanup reqd



result :

Code:
9----+----0----+----1----+----2----+----3----+-
fileA   no       date ind       msg1 
100054,000, ,20070503,N,       ,achieved ydt
                               ,k1256 is missing
100054,000  ,20071503,N,      , k1256 is missing
                              , result set to NO



Totally msg codes are 5. msg1 to msg5. Some rows have only one msg1 . some may have all the five.

can anyone let me know how to handle this in icetool or some other utility

hope iam clear in my query.
thanks.
Back to top
View user's profile Send private message
akshaiya

New User


Joined: 17 Sep 2005
Posts: 49

PostPosted: Tue May 22, 2007 7:13 pm
Reply with quote

can anyone let me know is it possible to do the above in DFSORT ?
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Wed May 23, 2007 12:27 pm
Reply with quote

I am not conversant with SPLICE but can't you just match the AAAAs, BBBBs etc. and overlay with the respective message body.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed May 23, 2007 12:36 pm
Reply with quote

Prasad,

Quote:
overlay with the respective message body


Could you provide the OVERLAY sample code which writes first match in one line and second match in the next line?
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: Mon May 28, 2007 12:50 am
Reply with quote

Since you posted this on another help board where it is being discussed, we don't need to discuss it here, so I'm closing this thread.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts first column truncated in search result IBM Tools 13
No new posts Rexx pattern matching on PS qualifer ... CLIST & REXX 1
Search our Forums:

Back to Top