File Management - IBM
File Management - IBM File Management - IBM
© Copyright International Business Machines Corporation 1998, 2000. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
| Contents About File Management . . . . . . . vii Who should read the File Management book . . . vii What’s new in V4R5 File Management . . . . . vii Chapter 1. Introduction to File Management . . . . . . . . . . . . . 1 File types . . . . . . . . . . . . . . . 1 Chapter 2. File processing . . . . . . . 3 File Management operations overview . . . . . . 3 File security considerations . . . . . . . . . 8 Object authority . . . . . . . . . . . . 8 Data authorities . . . . . . . . . . . . 9 Authorities required for file operations . . . . 10 Limiting access to files and data when creating files . . . . . . . . . . . . . . . . 11 Sharing files . . . . . . . . . . . . . . 12 Open considerations for files shared in a job . . 13 I/O considerations for files shared in a job . . . 14 Close considerations for files shared in a job . . 15 Allocating file resources . . . . . . . . . . 15 File resource allocation . . . . . . . . . 16 File resources that must be allocated . . . . . 16 How the system allocates resources . . . . . 16 Opening files . . . . . . . . . . . . . . 17 Scoping of opened files . . . . . . . . . 18 Opening files using temporary file descriptions 18 Open considerations when using *LIBL with a DDM file . . . . . . . . . . . . . . 20 Detecting file description changes . . . . . . 21 Displaying information about open files . . . . 22 Monitoring file status with the open and I/O feedback area. . . . . . . . . . . . . 23 File error detection and handling by the system . . 24 Messages and message monitors in files by the system . . . . . . . . . . . . . . . 25 Major and minor return codes in files by the system . . . . . . . . . . . . . . . 26 Recovering from file system errors. . . . . . 28 Related information on file types . . . . . . . 31 Chapter 3. Using overrides . . . . . . 33 Overrides: An overview . . . . . . . . . . 33 Benefits of using overrides . . . . . . . . 34 Summary of the override commands . . . . . 34 Effect of overrides on some commands . . . . 35 Using overrides in multithreaded jobs . . . . 37 Applying overrides . . . . . . . . . . . . 37 Overriding file attributes . . . . . . . . . 38 Overriding file names . . . . . . . . . . 39 Overriding file names and file attributes. . . . 39 Overriding the scope of an open file . . . . . 40 How the system processes overrides . . . . . 40 Effect of exits on overrides: scenario . . . . . 48 Effect of TFRCTL on overrides-Scenario . . . . 49 | | | | | | | Overrides to the same file at the same call level: scenario 1 . . . . . . . . . . . . . . 49 Overrides to the same file at the same call level: scenario 2 . . . . . . . . . . . . . . 49 CL program overrides . . . . . . . . . . 50 Securing files against overrides . . . . . . . 51 Using a generic override for printer files . . . 51 Applying overrides when compiling a program 53 Deleting overrides . . . . . . . . . . . . 54 Deleting overrides: scenario 1 . . . . . . . 55 Deleting overrides: scenario 2 . . . . . . . 55 Displaying overrides . . . . . . . . . . . 57 Displaying all overrides for a specific activation group: scenario . . . . . . . . . . . . 57 Displaying merged file overrides for one file: scenario . . . . . . . . . . . . . . 58 Displaying all file overrides for one file: scenario 58 Displaying merged file overrides for all files: scenario . . . . . . . . . . . . . . 58 Displaying overrides with WRKJOB: scenario . . 58 Displaying overrides: comprehensive scenario . . 59 Displaying overrides: tips . . . . . . . . 63 Redirecting files . . . . . . . . . . . . . 64 Planning for redirecting files. . . . . . . . 65 Redirecting files: tips . . . . . . . . . . 65 Default actions for redirected files . . . . . . 66 Chapter 4. Copying files . . . . . . . 69 Copying physical or logical files . . . . . . . 69 Copying files: overview . . . . . . . . . . 70 Copying files: commands . . . . . . . . . 70 Copying files: supported functions . . . . . 73 Copying files: basic functions . . . . . . . 76 Creating the to-file (CRTFILE parameter) . . . . 82 Specifying CRTFILE(*YES) on either the CPYF or CPYFRMQRYF command. . . . . . . . . 83 Authorities, user profiles, and file capabilities of the to-file created by Copy File (CPYF) . . . . 83 Adding, replacing, and updating records (MBROPT parameter). . . . . . . . . . . . . . . 84 Specifying *REPLACE when copying files . . . 84 Specifying *ADD when copying files . . . . . 85 Specifying *UPDADD when copying files . . . 87 Copying records into files that use trigger programs . . . . . . . . . . . . . . 88 Selecting members to copy . . . . . . . . . 88 Copying file members: overview . . . . . . 88 Allowed copy operations and parameters . . . 89 Copying all members or labels within a file . . 89 Copying only certain members or labels within a file . . . . . . . . . . . . . . . . 90 Specifying the label identifier or member name for the copy operation . . . . . . . . . . 90 © Copyright IBM Corp. 1998, 2000 iii
- Page 1: AS/400e File Management Version 4
- Page 6 and 7: | | | | | Special considerations fo
- Page 8 and 9: vi File Management V4R5
- Page 10 and 11: viii File Management V4R5
- Page 12 and 13: 2 File Management V4R5 v Distribute
- Page 14 and 15: Table 1. File Types and Their Main
- Page 16 and 17: Table 2. High-Level Languages and T
- Page 18 and 19: | | Table 3. High-Level Languages a
- Page 20 and 21: Add Add new records to the file. Up
- Page 22 and 23: | Sharing files 12 File Management
- Page 24 and 25: 14 File Management V4R5 For example
- Page 26 and 27: 16 File Management V4R5 File resour
- Page 28 and 29: 18 File Management V4R5 v “Displa
- Page 30 and 31: Application 1 Application 2 Applica
- Page 32 and 33: 22 File Management V4R5 LVLCHK(*NO)
- Page 34 and 35: The open feedback area also contain
- Page 36 and 37: 26 File Management V4R5 Table 6. OS
- Page 38 and 39: 28 File Management V4R5 Table 7. Ma
- Page 40 and 41: 30 File Management V4R5 Depending o
- Page 42 and 43: 32 File Management V4R5
- Page 44 and 45: 34 File Management V4R5 Handling ov
- Page 46 and 47: 36 File Management V4R5 output queu
- Page 48 and 49: 38 File Management V4R5 The followi
- Page 50 and 51: 40 File Management V4R5 application
- Page 52 and 53: 42 File Management V4R5 activation
© Copyright International Business Machines Corporation 1998, 2000. All rights reserved.<br />
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract<br />
with <strong>IBM</strong> Corp.