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
 

 

How to achieve this requirement using SPLICE operator...

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

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Sep 04, 2009 8:24 pm    Post subject: How to achieve this requirement using SPLICE operator...
Reply with quote

Hi,

My input:

Code:

001725282 1 16 AS01
001725282 1 16 NEDS
001748075 1 04 DNEU
001748075 1 04 NEDS
001748075 1 05 AS01
001748075 1 05 DNEU
001748075 1 05 NEDS
001748075 1 05 ASAP


Required output:
Code:

001725282 1 16 AS01 NEDS           
001748075 1 04 DNEU NEDS           
001748075 1 05 AS01 DNEU NEDS ASAP 


Thanks in advance
Regards
R KARTHIK
Back to top
View user's profile Send private message

karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Fri Sep 04, 2009 8:50 pm    Post subject: Reply to: How to achieve this requirement using SPLICE opera
Reply with quote

I achieved this using following code

Code:

//TOOLIN   DD    *                                                 
SPLICE FROM(IN) TO(OUT) ON(1,14,CH) KEEPNODUPS -                   
 WITHEACH WITH(21,4) WITH(26,4) WITH(31,4) WITH(36,4) USING(CTL1)   
/*                                                                 
//CTL1CNTL DD *                                                     
  INREC IFOUTLEN=80,                                               
    IFTHEN=(WHEN=INIT,OVERLAY=(81:SEQNUM,8,ZD,RESTART=(1,14))),     
    IFTHEN=(WHEN=(81,8,ZD,EQ,1),BUILD=(1,14,16:16,4)),             
    IFTHEN=(WHEN=(81,8,ZD,EQ,2),BUILD=(1,14,21:16,4)),             
    IFTHEN=(WHEN=(81,8,ZD,EQ,3),BUILD=(1,14,26:16,4)),             
    IFTHEN=(WHEN=(81,8,ZD,EQ,4),BUILD=(1,14,31:16,4)),             
    IFTHEN=(WHEN=(81,8,ZD,EQ,5),BUILD=(1,14,36:16,4))               
/*                                                                 
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 Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Developer requirement in Ku... capricorn Mainframe Jobs 0 Sun Oct 23, 2016 3:49 pm
No new posts Cards mainframe developer requirement... capricorn Mainframe Jobs 0 Sun Sep 11, 2016 9:57 am
This topic is locked: you cannot edit posts or make replies. Urgent Requirement in CTS Chennai. Mahi_e Mainframe Jobs 0 Wed Feb 17, 2016 3:52 pm


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