IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

concatinate two VSAM datsets in ICETOOL STEP.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Brahmananda Reddy Manipi
Currently Banned

New User


Joined: 22 Jul 2008
Posts: 13
Location: Bangalore

PostPosted: Thu Oct 09, 2008 2:57 pm
Reply with quote

Hi All Please let me know how to concatinate two VSAM datsets in ICETOOL STEP.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Oct 09, 2008 3:06 pm
Reply with quote

You CAN NOT concatenate VSAM files as you do with normal non VSAM files.

You need to develop some sort of logic to do what you want - maybe copy the two VSAM files to two flat files and then sort the concatenated flat files.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 09, 2008 11:25 pm
Reply with quote

Hi,

Please check this link :

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D430/CCONTENTS?DT=20040624112123

section "3.6.3 Concatenating Data Sets Sequentially":
Quote:
A sequential concatenation can include sequential data sets, PDS members, PDSE members, and UNIX files. With sequential concatenation, the system treats a PDS, PDSE, or UNIX member as if it were a sequential data set. The system treats a striped extended-format data set as if it were a single-volume data set.

Rule: You cannot concatenate VSAM data sets.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 09, 2008 11:27 pm
Reply with quote

Hello Brahma,

What exactly you want to accomplish, if you tell us that - may be there can be some alternatives, something like:

1. REPRO both files into flat files.
2. Concatenate the files and eliminate any duplicates in key(SORT)
3. Load to your new VSAM.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Oct 09, 2008 11:36 pm
Reply with quote

This thread has come up with some "glue" I think..I keep on coming..Hello again.. icon_smile.gif

You could merge them using;
Code:
//SORTIN01 DD DISP=SHR,vsam.file1
//SORTIN02 DD DISP=SHR,vsam.file2
 MERGE FIELDS=(....)

But this presumes they are already in the sort-order that you desire.

Hopethis helps..
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top