Several special considerations will make your optical programming easier.
How an application manages volumes depends almost entirely on the requirements of the application. Data should be written to volumes strategically, depending on the desired retrieval time in the future. If it is not desirable to wait for a near online volume to become online, the application might need to be set up so that the most likely volumes to be accessed are online.
The only limit to the number of directories that can be created on a volume is the capacity of the media. This restriction also applies to the number of files that can exist in an optical directory. Directories are not required to exist for files to be stored on a volume. If you want, all files can be stored in the root directory of a volume. The root directory is the ″/″ directory that is created when a volume is initialized. This root is not considered a directory in the traditional sense since it cannot be created or deleted like other directories. The root directory will always exist on initialized optical volumes.
/SPOOLFILES /YEAR_1994 /MONTH_MARCH 86 Optical Support V5R3 | | /MONTH_APRIL /YEAR_1995 /MONTH_MARCH /MONTH_APRILIn this example, the following are the fully qualified directory names:
/SPOOLFILES /SPOOLFILES/YEAR_1994 /SPOOLFILES/YEAR_1994/MONTH_MARCH /SPOOLFILES/YEAR_1994/MONTH_APRIL /SPOOLFILES/YEAR_1995 /SPOOLFILES/YEAR_1995/MONTH_MARCH /SPOOLFILES/YEAR_1995/MONTH_APRIL
Directories can be useful when categorizing files, but they are not necessary. Like volume names, directory names must be unique within the same volume. For example, volume VOL001 cannot have two directories named DIR001. Volume VOL001 can, however, have a DIR001 directory and a DIR000/DIR001 directory. Also, a DIR001 directory can exist on volume VOL001 and volume VOL002. For information about directory naming conventions, see Path names.
The size of optical files depends almost entirely on the requirements of the application and the users of those files. The size of an optical file (accessible through HFS or the integrated file system) can range from 0 bytes to 4 294 705 152 bytes depending on the capacity of a volume. The physical size of the target piece of media is limited by the amount of free space available.
Generally, the larger the file, the better the performance and media use. When larger files are used, less media space is taken up by file directory information and more is used for actual data. Also, the performance related to file size is not a linear comparison. It does not take twice as long to write 20 KB of data as it does to write 10 KB of data. Performance (KB/second) improves as the amount of data being read or written increases.