Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Splice more than 50 occurances rajatbagga DFSORT/ICETOOL 1 Wed Oct 11, 2017 9:36 am
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us