CL Command Reference - CHGSAVF

CL Command List > CHGSAVF Reference

Description:

The Change Save File (CHGSAVF) command changes the attributes of the specified save file. The changes become a permanent part of the file and are kept until the file is either changed or deleted.

Restrictions:

. You must have object operational (*OBJOPR) and object management (*OBJMGT) authorities to the save file.

. You must have read (*READ) authority for the library where the save file is located.


Examples:

Example 1: File Resources Allocated Immediately

CHGSAVF FILE(ONLINE) WAITFILE(*IMMED)

This command changes the save file named ONLINE so that when it is opened the file resources must be available immediately, or an error message is sent. No other files are changed.



Example 2: Changing Maximum Number of Records

CHGSAVF FILE(ONLINE) MAXRCDS(20000)

This command changes the save file named ONLINE so that it can have up to 20,000 records (approximately 10 megabytes).