SAVEAS subcommand
The SAVEAS command is used to add a member to the partitioned data set library that is being edited. If the member exists, the content of the member is replaced with the lines.
Syntax
Operands
- MemName
- A valid member name.
- range
- Specifies the lines to be used to create a member or to replace
the content of the existing member. See the following table for all
the valid values.
Table 1. Valid values of operand range Value Definition Explanation *
An asterisk mark. Indicates all the existing lines. Note: This is the default value.Line1 Line2
A pair of numbers or labels, which are separated by at least one blank. Indicates a range of lines: line Line1 - line Line2. Line1 *
A number or label, and an asterisk mark, which are separated by at least one blank. Indicates a range of lines: from line Line1 to the last line.
Usage notes
This command is
implemented as an EDIT MACRO, which can be disabled by using the ISET
ED
command shortcut.
Examples
SAVEAS MEM
- Creates a member that is called MEM with all the existing lines. If member MEM exists, the content of the member is replaced with the lines.
SAVEAS MEM .A .B
- Creates a member that is called MEM with a range of lines from the line labeled .A to line labeled .b. If member MEM exists, the content of the member is replaced with the lines.
SAVEAS 7 MEM
- Creates a member that is called MEM with only line 7. If member MEM exists, the content of the member is replaced with the line.
SAVEAS 7 * MEM
- Creates a member that is called MEM from line 7 to the last line. If member MEM exists, the content of the member is replaced with the lines.