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
 

 

IMS Unload via JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
rafaelantunes

New User


Joined: 10 May 2007
Posts: 32
Location: Portugal

PostPosted: Wed Jan 30, 2013 2:44 pm    Post subject: IMS Unload via JCL
Reply with quote

Hi all.

I am new to IMS DB, so please forgive me for my further statements and questions.

In DB2 I know that I can execute an unload to a dataset of any database without major restrictions, such as with CICS online.

Now, the problem I'm facing is that, I was informed that the same process for IMS is not possible, that is, I have to close the online to do that.

Is this actually true? How can I manage to execute a JCL process to read the IMS DB and separate the segments into different "flat files" without closing the online or have performance issues?

Any help will be much appreciated.

Regards
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Wed Jan 30, 2013 2:51 pm    Post subject: Reply to: IMS Unload via JCL
Reply with quote

it would be better to define what You mean by <unload>

Quote:
Online Database Image Copy utility (DFSUICP0)
Use the Online Database Image Copy utility (DFSUICP0) to create an as-is image copy of the database while it is being updated by the online system. The image copy is used for recovery purposes.
Back to top
View user's profile Send private message
rafaelantunes

New User


Joined: 10 May 2007
Posts: 32
Location: Portugal

PostPosted: Wed Jan 30, 2013 3:27 pm    Post subject:
Reply with quote

Well, I have a IMS database with customers, orders and itens.
I believe this is stored in a single VSAM, like this:
Code:
Client A
Order #01
Item #11
Item #12
Order #02
Item #21
Client B
Order #03
Item #31
Item #32
...


So all I want is to divide the segments of data into different flat files:
File 1
Client A
Client B

File 2
Order #01
Order #02
Order #03

File 3
Item #11
Item #12
Item #21
Item #31
Item #32

Can't this be done thru JCL without have issues with the online?
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Wed Jan 30, 2013 7:48 pm    Post subject:
Reply with quote

I always write a small COBOL program to do what you're doing. As long as it's reading sequentially through the primary database, it should run quickly.

IMS has a nice feature called OSAM sequential buffering (OSSB) that will gobble up huge chunks of data for each EXCP (assuming a few things). You enable it by adding a DD to the IMS step:
Code:
//DFSCTL    DD DSN=WTSO.PROD.PARM(DFSCTL),DISP=SHR


That contains this line:
Code:

SBPARM ACTIV=COND


This is safe to put in ANY program because it will check the access to the database and see if it's sequential. If not, it goes to sleep. if it activates, it will take up some memory, so give it some to play with.
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 -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm
No new posts DB2 Unload format options Susanta DB2 2 Fri Aug 12, 2016 5:42 pm
No new posts DXT unload utility - DVRE0000 mistah kurtz DB2 1 Thu Jul 07, 2016 4:56 pm
No new posts How to suppress retun code of partil ... mkk157 DB2 9 Fri May 27, 2016 6:59 am
No new posts FAST UNLOAD and LOAD issue GaganGarg DB2 1 Mon Feb 15, 2016 2:30 pm


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