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
 
how to merge data sets using IEBGENER

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

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Tue Jan 22, 2008 2:25 pm    Post subject: how to merge data sets using IEBGENER
Reply with quote

how to merge data sets using IEBGENER.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Jan 22, 2008 4:26 pm    Post subject:
Reply with quote

Do you mean concatenate ?
Back to top
View user's profile Send private message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Tue Jan 22, 2008 4:31 pm    Post subject: Reply to: how to merge data sets using IEBGENER
Reply with quote

yes
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Jan 22, 2008 5:05 pm    Post subject: Reply to: how to merge data sets using IEBGENER
Reply with quote

hac,

Just provide the dataset names that needs to be concatenated only by one across the SYSUT1 DD.

Code:

//SYSUT1 DD DSN=FILE1,DISP=SHR
//       DD DSN=FILE2,DISP=SHR
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Tue Jan 22, 2008 5:11 pm    Post subject:
Reply with quote

do you mean the concatenation of dataset names or the merging of data?
Back to top
View user's profile Send private message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Tue Jan 22, 2008 5:42 pm    Post subject: Reply to: how to merge data sets using IEBGENER
Reply with quote

thanx Aaru

what if i want to merge data
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 965
Location: Richmond, Virginia

PostPosted: Tue Jan 22, 2008 6:24 pm    Post subject:
Reply with quote

This is not an IEBGENER question - just a concatenate question. You concatenate datasets the same way for any program.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jan 22, 2008 6:27 pm    Post subject:
Reply with quote

the_gautam wrote:
do you mean the concatenation of dataset names or the merging of data?


IT MEANS THAT THE DATA FROM THE TWO SYSUT1 FILES WILL BE CONCATENATED IN THE OUTPUT FILE. IF YOU WANT TO MERGE THE TWO FILES YOU NEED TO USE A SORT PRODUCT.
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: Tue Jan 22, 2008 11:04 pm    Post subject:
Reply with quote

hac,

If you want to merge the files, each file must already be in sorted order. A DFSORT merge looks like this:

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN01 DD DSN=...  input file1
//SORTIN02 DD DSN=...  input file2
//SORTOUT DD DSN=...  output file
//SYSIN DD *
   MERGE FIELDS=(p,m,f,s)


where p is the starting position of the key, m is its length, f is its format and s is A for ascending or D for descending. For example:

11,10,CH,A

You can also use DFSORT to sort or copy files.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
Back to top
View user's profile Send private message
hac

New User


Joined: 18 Jan 2008
Posts: 30
Location: mumbai

PostPosted: Wed Jan 23, 2008 9:29 am    Post subject: Reply to: how to merge data sets using IEBGENER
Reply with quote

thanx for the help Frank Yaeger
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 Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm

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