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

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.

Type
*QUAL
Required
Yes
Case
Uppercase
*CURLIB
The job's current library, or QGPL if none is set.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Save file Save file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*CURLIB
Length
10
Case
Uppercase

Suggested / special values: *CURLIB

TEXT Text 'description'

Describes the object in up to 50 characters.

Type
*CHAR
Required
No
Default
*BLANK
Length
50
Case
Uppercase

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.

Type
*UINT4
Required
No
Default
*NOMAX
Range
1 to 4293525600
Case
Uppercase

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.

Type
*UINT2
Required
No
Default
*LIBASP
Range
1 to 32
Case
Uppercase

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.

Type
*INT4
Required
No
Default
*IMMED
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

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.

Type
*NAME
Required
No
Default
*EXCLUDE
Length
10
Case
Uppercase

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.

IBM command documentation

Generated from os/cl/catalog/CRTSAVF.json and os/cl/help/CRTSAVF.json.