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
 
concatinate two VSAM datsets in ICETOOL STEP.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: concatinate two VSAM datsets in ICETOOL STEP.
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: 8593
Location: Back in jolly old England

PostPosted: Thu Oct 09, 2008 3:06 pm    Post subject:
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

Senior Member


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

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

Hi,

Please check this link :

http://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

Senior Member


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

PostPosted: Thu Oct 09, 2008 11:27 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Oct 09, 2008 11:36 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

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