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
 

 

SPLICE used to add matching column

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: SPLICE used to add matching column
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    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Wed May 23, 2007 12:36 pm    Post subject:
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 Moderator


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

PostPosted: Mon May 28, 2007 12:50 am    Post subject:
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.    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 Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Matching and unmatching records scdinesh DFSORT/ICETOOL 11 Tue Feb 07, 2017 12:41 am
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm
No new posts Matching with Key at different postions. rajatbagga DFSORT/ICETOOL 12 Wed Nov 09, 2016 10:58 am
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm


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