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
 

 

Combining two PS

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

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Mon May 18, 2009 11:16 am    Post subject: Combining two PS
Reply with quote

I have two PS files.
The first one has data in the below format
Code:

job1         5/12/2009
job2         5/13/2009
job3         5/10/2009
job4         5/14/2009
job5         5/12/2009
job6         5/13/2009
job7         5/10/2009
job8         5/14/2009


the second one has data in the following format
Code:

job1,job5       
job2,job6     
job3,job7     
job4,job8     
       

I want the out put file like,
Code:

job1,job5     5/12/2009   
job2,job6     5/10/2009
job3,job7     5/13/2009
job4,job8     5/14/2009   


I'm using April 2006 version of DFSORT.
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 18, 2009 8:47 pm    Post subject:
Reply with quote

You can use a DFSORT/ICETOOL job like the following to do what you asked for:

Code:

//S1   EXEC  PGM=ICETOOL
//TOOLMSG   DD  SYSOUT=*
//DFSMSG    DD  SYSOUT=*
//CON DD *
job1         5/12/2009
job2         5/13/2009
job3         5/10/2009
job4         5/14/2009
job5         5/12/2009
job6         5/13/2009
job7         5/10/2009
job8         5/14/2009
/*
//   DD *
job1,job5
job2,job6
job3,job7
job4,job8
/*
//OUT DD SYSOUT=*
//TOOLIN DD *
SPLICE FROM(CON) TO(OUT) ON(1,4,CH) WITH(5,5)
/*
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Tue May 19, 2009 1:49 pm    Post subject:
Reply with quote

It worked fine for me....Thank you much Frank..
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 Combining contents of 2 files in to s... sprikitik SYNCSORT 1 Fri Jan 22, 2016 2:16 pm
No new posts Combining BUILD and OVERLAY in one st... expat DFSORT/ICETOOL 8 Wed Jun 05, 2013 2:20 pm
No new posts Combining two sort cards Indrajit_57 JCL & VSAM 6 Sat Nov 24, 2012 3:44 am
No new posts Replace records while combining mrdinesh DFSORT/ICETOOL 5 Mon Sep 19, 2011 7:58 pm
No new posts Syncsort - Combining two records into... notonly4u JCL & VSAM 6 Mon Mar 07, 2011 4:54 pm


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