FDL S+

Append jobs to a set.

Arguments
setname script
Description
Append all jobs created in the body of the procedure to the specified set.
Note:
  • If the specified set does not exist, the set is created.
  • Job I/O nodes are not placed in the set.
  • Must use fully qualified set name when appending to a nested set.
Arguments
switch -- $arg {
     "-last" {
          vtk_set_operation $setid $make(lastNodeId) ATTACH
     }
     "-set" {
          set set2name   [shift args]
          set set2id     [vtk_set_find $set2name]
          vtk_set_operation $setid $set2id UNION
     }
     "-idlist" -
     "-id" {
           set idList [shift args]
           vtk_set_operation $setid $idList ATTACH
     }
Synopsis
S+ set_namebody
Examples
Create the first Set
S "foo1" {
    J vw cp aa bb
}
Append a second Set to the first using S+

S+ "foo1" {
    J vw cp bb cc
}
foo1 now has two jobs attached to it. "J vw cp aa bb" and "J vw cp bb cc". Because S+ was used, rather than just the S procedure, the jobs were added to the foo1 Set, rather than overwriting the original.
Append Jobs to a Non-existing Set
If you try to append jobs to a Set that does not exist yet, the Set is created by default, with the added jobs attached to it.
For example
S+ "MyNewSet" {
    J vw cp cc dd
}
A new Set named "MyNewSet" is created.