SELECT Command

The SELECT command writes a part of a member to an output file. Through a series of SELECT commands, you can copy partial members from the library and assemble them into a composite member on the output file.
capan146
The SELECT command writes a part of a member to an output file. Through a series of SELECT commands, you can copy partial members from the library and assemble them into a composite member on the output file.
++SELECT can be followed by statements to be inserted into the same output file (print, punch, or work). Statements SELECTed from the named member are first written to the designated output file and then followed by any non-command statements following the ++SELECT. It is then possible to perform a temporary update to a library member by selecting all records to be retained and supplying modified statements through the input stream.
This command does
not
affect the library.
Syntax
         {PRINT} ++SELECT {PUNCH} ,name,level,seq1,seq2          {WORK }
Parameters
All parameters are required.
  • PRINT | PUNCH | WORK
    These parameters designate the output file to which the partial member is written.
    • PRINT -- To the output print file
    • PUNCH -- To the output punch file
    • WORK -- To the output work file.
  • ,name
    The name of the member from which the records are copied.
  • ,level
    The current modification level of the member from which the records are copied.
  • ,seq1, seq2
    You must provide two sequence numbers: the first is the sequence number of the first record you want to copy from the member; the second is the sequence number of the last record you want to copy from the member. All records, from the first through and including the last, are copied to the output file. The usual rules for formatting apply (see ADD Command).