I resize most of my Dynamic files this way. I don't like having a small 
overxxx segment for every datxxx segment that memresize creates.. By creating 
the new file my self, I don't have a lot of these small overxxx segments that 
are never used.

I also wrote a process to Select the old file and create a SAVELIST. Without 
going into to much detail, the process uses PHANTOM to spawn off a number of 
Unidata copies. So there are a number of simultaneous processes working to 
build the new file. Each PHANTOM Copy knows how many total phantoms are working 
on the file and what sequence IT is within the total number of PHANTOMS. Each 
Phantom handles part of the SAVELIST. Each PHANTOM does the iteration below 
until the list is exhausted:

1. QSELECT SAVEDLISTS listname000. (process 2 would use 001, process 3 would 
use 002 etc)
2. COPY FROM old.file TO new.file
3. Increment the list counter from 000 by the number of Phantoms and go back to 
step one to process a new segment of the savelist.
4. If a process cannot find the next savelist segment in SAVEDLISTS, it is done.

This process is almost as fast as memresize. You can control what file systems 
are used for space reasons and you don't get scads of overxxx segments in your 
FILE.NAME directory (one of my dynamic files has 39 dat segments and just a 
over001). 

So I don't use memresize for dynamic files anymore. 

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Jonathan Leckie
Sent: Wednesday, April 25, 2012 9:36 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Huge Dynamic Unidata file

I have a very large  file that I don't have enough free space to memresize, 
however howabout I create  new dynamic (temporary) file and then copy all the 
records (in ECL) to the new  file and then (unix) copy the temporary file over 
the top of the  original.
 
Does that seem like  a sensible idea?
 
 
Regards
Jonathan Leckie
 



**********************************************************
* This message has been scanned for viruses and dangerous content
* and is believed to be clean.            
*                                                                           
* This email and any files transmitted with it are confidential and 
* intended solely for the use of the individual or entity to whom they
* are addressed.
*
* If you have received this email in error please notify us at Blairs,
* details can be found on our website http://www.blairswindows.co.uk
*
* Name & Registered Office:
*
* Blairs Windows Limited
* Registered office : 9 Baker Street, Greenock, PA15 4TU
* Company No: SC393935, V.A.T. registration No: 108729111
**********************************************************
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this email in error,
please immediately notify the sender by e-mail at the address shown.  
This email transmission may contain confidential information.  This 
information is intended only for the use of the individual(s) or entity to 
whom it is intended even if addressed incorrectly.  Please delete it from 
your files if you are not the intended recipient.  Thank you for your 
compliance.  Copyright (c) 2012 Cigna
==============================================================================

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to