> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[EMAIL PROTECTED] On Behalf Of Petersen, Jim
> Sent: Tuesday, August 22, 2006 1:08 PM
> To: [email protected]
> Subject: Re: Interesting problem for y'all
> 
> 
> All of  your ideas are great and I have thought of them all but my
> initial problem is how to create the 40 gig file in the 1st place.
> Given that I only have MOD 27 volumes as the largest volume available.
> How do I go about creating that 40 gig file before the 1st 
> access of the
> HFS file?

1) Create it multivolume on non SMS managed volumes. Give it the
appropriate amount of space and Bob's your uncle.

2) Create it as multivolume on an SMS using a storage class with the
GUARANTEED SPACE attribute. Give it the appropriate amount of space and
Bob's your uncle.

3) Create it as multivolume with candidate volumes and the appropriate
amount of space. 40Gib is 40x1024x1024x1024. That is 41943040K. Mount
the filesystem at some mountpoint as you normally would. For example,
"/mnt". Now create a 40GiB file, then rm it. A shell script similar to
(untested!) is possible:

/* REXX */
data=copies(' ',1024) /* 1K of blanks */
file="/mnt/40gig"
address syscall "open "file o_creat+o_wronly+o_append+o_excl 600
if RC <> 0 | RETVAL < 0 then do
   say "OPEN failed RC="RC", RETVAL="RETVAL
end
fd=RETVAL
do i=1 to 41943040
   address syscall "write (fd) (data) 1024"
   if RC <> 0 then do
      say "write to file got RC="RC
      leave
   end
end
address syscall "close (fd)"
/*address syscall "unlink (file)"*/

Feel free to put in any other error checking you might like. I commented
out the "unlink" so that you could do an "ls -l" on the file to verify
its size before you "rm" it.

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

This message (including any attachments) contains confidential
information intended for a specific individual and purpose, and its
content is protected by law.  If you are not the intended recipient, you
should delete this message and are hereby notified that any disclosure,
copying, or distribution of this transmission, or taking any action
based on it, is strictly prohibited. 
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to