Table of Contents

About File Management

  • Who should read the File Management book
  • What's new in V4R5 File Management
  • Introduction to File Management

  • File types
  • File processing

  • File Management operations overview
  • File security considerations
  • Object authority
  • Data authorities
  • Authorities required for file operations
  • Limiting access to files and data when creating files
  • Sharing files
  • Open considerations for files shared in a job
  • I/O considerations for files shared in a job
  • Close considerations for files shared in a job
  • Allocating file resources
  • File resource allocation
  • File resources that must be allocated
  • How the system allocates resources
  • Opening files
  • Scoping of opened files
  • Opening files using temporary file descriptions
  • Open considerations when using *LIBL with a DDM file
  • Detecting file description changes
  • Displaying information about open files
  • Monitoring file status with the open and I/O feedback area
  • File error detection and handling by the system
  • Messages and message monitors in files by the system
  • Major and minor return codes in files by the system
  • Recovering from file system errors
  • Related information on file types
  • Using overrides

  • Overrides: An overview
  • Benefits of using overrides
  • Summary of the override commands
  • Effect of overrides on some commands
  • Using overrides in multithreaded jobs
  • Applying overrides
  • Overriding file attributes
  • Overriding file names
  • Overriding file names and file attributes
  • Overriding the scope of an open file
  • How the system processes overrides
  • Effect of exits on overrides: scenario
  • Effect of TFRCTL on overrides-Scenario
  • Overrides to the same file at the same call level: scenario 1
  • Overrides to the same file at the same call level: scenario 2
  • CL program overrides
  • Securing files against overrides
  • Using a generic override for printer files
  • Applying overrides when compiling a program
  • Deleting overrides
  • Deleting overrides: scenario 1
  • Deleting overrides: scenario 2
  • Displaying overrides
  • Displaying all overrides for a specific activation group: scenario
  • Displaying merged file overrides for one file: scenario
  • Displaying all file overrides for one file: scenario
  • Displaying merged file overrides for all files: scenario
  • Displaying overrides with WRKJOB: scenario
  • Displaying overrides: comprehensive scenario
  • Displaying overrides: tips
  • Redirecting files
  • Planning for redirecting files
  • Redirecting files: tips
  • Default actions for redirected files
  • Copying files

  • Copying physical or logical files
  • Copying files: overview
  • Copying files: commands
  • Copying files: supported functions
  • Copying files: basic functions
  • Creating the to-file (CRTFILE parameter)
  • Specifying CRTFILE(*YES) on either the CPYF or CPYFRMQRYF command
  • Authorities, user profiles, and file capabilities of the to-file created by Copy File (CPYF)
  • Adding, replacing, and updating records (MBROPT parameter)
  • Specifying *REPLACE when copying files
  • Specifying *ADD when copying files
  • Specifying *UPDADD when copying files
  • Copying records into files that use trigger programs
  • Selecting members to copy
  • Copying file members: overview
  • Allowed copy operations and parameters
  • Copying all members or labels within a file
  • Copying only certain members or labels within a file
  • Specifying the label identifier or member name for the copy operation
  • Special considerations for the Override Database File (OVRDBF), Override Diskette File (OVRDKTF), and Override Tape File (OVRTAPF) commands
  • How the copy function adds members to the to-file
  • Selecting the records to copy
  • Selecting records using a specified record format name (RCDFMT Parameter)
  • Selecting records by relative record numbers (FROMRCD and TORCD Parameters)
  • Selecting records by record keys (FROMKEY and TOKEY Parameters)
  • Selecting a specified number of records (NBRRCDS Parameter)
  • Selecting records based on character content (INCCHAR Parameter)
  • Selecting records based on field value (INCREL Parameter)
  • Copying deleted records (COMPRESS Parameter)
  • Printing records (PRINT, OUTFMT, and TOFILE(*PRINT) parameters)
  • Creating an unformatted print listing
  • Copying between different database record formats (FMTOPT parameter)
  • Specifying data for different field types and attributes
  • Converting universal coded character set (UCS-2) graphic fields
  • Converting System/370 floating point and null fields
  • Conversion rules for copying files
  • Adding or changing source file sequence number and date fields (SRCOPT and SRCSEQ Parameters)
  • Copying device source files to database source files
  • Copying database source files to device source files
  • Copying database source files to database source files
  • Preventing errors when copying files
  • Limiting recoverable errors during copy
  • Preventing date, time, and timestamp errors when copying files
  • Preventing position errors when copying files
  • Preventing allocation errors when copying files
  • Preventing copy errors that result from constraint relationships
  • Copying files not in check-pending status
  • Copying files in check pending status
  • Preventing copy errors related to your authority to files
  • Improving copy performance
  • Avoiding keyed sequence access paths
  • Specifying fewer parameters
  • Year 2000 support: date, time, and timestamp considerations
  • Copying FROM logical file ZONED, CHARACTER, or PACKED field (with a DATFMT) TO a DATE field in a physical to-file
  • Copying FROM or TO a ZONED or PACKED field (that has no DATFMT) TO or FROM a DATE type field
  • Restrictions for Year 2000 support
  • Copying complex objects
  • Copying files that contain user-defined functions
  • Copying files that contain user-defined types
  • Copying files that contain DataLinks
  • Copying files that contain large objects
  • Copying between different systems
  • Using the Copy From Import File (CPYFRMIMPF) command to copy between different systems
  • Using the Copy To Import File (CPYTOIMPF) command to copy between different systems
  • Notes on the CPYFRMIMPF command
  • Restrictions on the CPYFRMIMPF command
  • (CPYFRMIMPF) Importing data to the AS/400 when the from-file is a database file or DDM file
  • (CPYFRMIMPF) Importing data to AS/400 when the import file is a stream file
  • Parallel data loader support to use with the CPYFRMIMPF command
  • Handling data from the import file
  • Delimited import file
  • Fixed formatted import file
  • Notes on the CPYTOIMPF command
  • Notes on the delimited import file (CPYTOIMPF command)
  • Restrictions for the CPYTOIMPF command
  • Copying data to the import file in a fixed format (CPYTOIMPF command)
  • Working with spooled files

  • Output spooling
  • Spooling device descriptions
  • Summary of spooled file commands
  • Locating your spooled files
  • File redirection of spooled files
  • Output queues of spooled files
  • Summary of output queue commands
  • Default printer output queues
  • Default system output queues
  • Creating your own output queues
  • Order of spooled files on an output queue
  • Using multiple output queues
  • Output queue recovery
  • Spooling writers
  • Summary of spooling writer commands
  • Spooled file security
  • Controlling the number of spooled files in your system
  • Command examples for additional spooling support
  • Input spooling
  • Summary of job input commands
  • Job queues
  • Transferring jobs in a queue
  • Using an inline data file
  • Spooling subsystem
  • Spooling library
  • Appendix A. Feedback area layouts

  • Open feedback area
  • Device definition list
  • Volume label fields
  • I/O feedback area
  • Common I/O feedback area
  • I/O feedback area for ICF and display files
  • I/O feedback area for printer files
  • I/O feedback area for database files
  • Get attributes feedback area
  • Appendix B. Double-byte character set support

  • Double-byte character set fundamentals
  • DBCS code scheme
  • Shift-control double-byte characters
  • Invalid double-byte code and undefined double-byte code
  • Using double-byte data
  • Double-byte character size
  • Processing double-byte characters
  • Basic double-byte characters
  • Extended double-byte characters
  • What happens when extended double-byte characters are not processed
  • DBCS device file support
  • What a DBCS file is
  • When to indicate a DBCS file
  • How to indicate a DBCS file
  • Improperly indicated DBCS files
  • DBCS display support
  • Inserting shift-control double-byte characters
  • Number of displayed extended double-byte characters
  • Number of DBCS input fields on a display
  • Effects of displaying double-byte data at alphanumeric work stations
  • Copying DBCS files
  • Copying spooled DBCS files
  • Copying nonspooled DBCS files
  • Application program considerations for DBCS
  • Designing application programs that process double-byte data
  • Changing alphanumeric application programs to DBCS application programs
  • DBCS font tables
  • Commands for DBCS font tables
  • Finding out if a DBCS font table exists
  • Copying a DBCS font table onto tape or diskette
  • Copying a DBCS font table from tape or diskette
  • Deleting a DBCS font table
  • Starting the character generator utility for DBCS font tables
  • Copying user-defined double-byte characters
  • DBCS font files
  • DBCS sort tables
  • Commands for DBCS sort tables
  • Using DBCS sort tables on the system
  • Finding out if a DBCS sort table exists
  • Saving a DBCS sort table onto tape or diskette
  • Restoring a DBCS sort table from tape or diskette
  • Copying a Japanese DBCS master sort table to a data file
  • Copying a Japanese DBCS master sort table from a data file
  • Deleting a DBCS sort table
  • DBCS conversion dictionaries
  • System-supplied dictionary (for Japanese use only) for DBCS
  • User-created dictionary for DBCS
  • Commands for DBCS conversion dictionaries
  • Displaying and printing the DBCS conversion dictionary
  • Deleting a DBCS conversion dictionary
  • DBCS conversion (for Japanese use only)
  • Where you can use DBCS Conversion
  • How DBCS Conversion works
  • Using DBCS Conversion
  • Performing DBCS Conversion
  • Bibliography

    Index


    [ Top of Page | Previous Page | Next Page | Table of Contents | Index ]