Command reference / save
CRTSAVF
Create Save File
Creates a save file. A save file can be used with save and restore commands to hold data that would otherwise go to tape or optical media. It can also be used like a database file to read or write records holding save or restore information, or to send objects over the SNADS network.
Allowed environments: *ALL.
Positional parameters: 1.
Restrictions
- An online save file should only hold save/restore data. Records written by a high-level language program must contain data produced by saving objects into the save file.
- Records retrieved from a save file carry sequencing checksum information that the system validates on insert. Out-of-sequence or altered records are rejected.
- A save file can hold the output of only one save operation and one library, and all its objects must come from the same library. Sending it with SNDNETF limits its size to about 2 billion bytes.
- You need *OBJOPR authority to the CRTSAVF command to create a duplicate save file object or to restore a save file object.
- You need *ADD and *READ authority to the library where the save file is created.
Parameters
FILE
Save file
Names the save file to create. Required. The name must follow the naming rules of any high-level language that uses it.
*CURLIB- The job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Save file
Save file
Library
Library
Suggested / special values:
*CURLIB
TEXT
Text 'description'
Describes the object in up to 50 characters.
Suggested / special values:
*BLANK
*BLANK- No text.
MAXRCDS
Maximum records
Maximum number of records the save file can hold. Space is estimated at 8192 bytes plus 512 bytes per record; the maximum amount of data is about 2 terabytes.
Suggested / special values:
*NOMAX
*NOMAX- Uses the maximum of 4293525600 records.
ASP
ASP number
Auxiliary storage pool from which storage for the save file is allocated; 1 through 32.
Suggested / special values:
*LIBASP
*LIBASP- The same ASP as the save file's library.
WAITFILE
Maximum file wait time
Seconds the program waits for file resources at open, or for device or session resources at acquire.
Suggested / special values:
*IMMED, *CLS
*IMMED- Do not wait; immediate allocation required.
*CLS- Use the job default wait time.
SHARE
Share open data path
Whether the open data path is shared with other programs in the same routing step.
Allowed values:
*NO, *YES
*NO- Not shared; a new ODP is created on each open.
*YES- Shared with each program in the job that also specifies *YES.
AUT
Authority
Authority given to users with no specific authority, who are not on an authorization list, and whose group profiles have no specific authority.
Suggested / special values:
*EXCLUDE, *ALL, *CHANGE, *LIBCRTAUT, *USE
*EXCLUDE- The user cannot access the object.
*ALL- All operations except authorization list management.
*CHANGE- All data authority and most operations, except owner-limited ones.
*LIBCRTAUT- Take the CRTAUT value of the library.
*USE- Basic operations such as reading; cannot change the object.
Examples
CRTSAVF FILE(ONLINE) TEXT('Online save file')
Creates online save file ONLINE in the current library, in the system ASP, with no maximum record limit. The public has no authority to it; only the owner and users whose group profile is the owner's profile can use it.
Generated from os/cl/catalog/CRTSAVF.json and os/cl/help/CRTSAVF.json.