FDL S

Precise definition of a set of jobs.

Arguments
setname script args
Description
Collect all jobs created in the body of the procedure in the specified set. The S procedure can be nested. If the setname at one level begins with a '+' sign or if it has no colons (':'), the full name of the set is the concatenation of the name of the set at the previous level, separated with a colon ':'. If the name contains colons, it is considered to be a complete set name.
As of 2014.*, it is allowed for sets to contain other sets. Because of this, nested S procedures now attach the subset to the superset.
Note: Job I/O nodes are not placed in the set.
Synopsis
S set_namebody
Arguments
"-label" -
"-gui_label" {
     set label [shift args]
     if { $label == "" } {
          vtk_prop_del $make(setId) GUI_LABEL
     } else {
          vtk_prop_set -text $make(setId) GUI_LABEL $label
          }
     }
     "-files" {
          S_update_files $setname
     }
Examples
Single Set
S foo1 { J vw sleep 0 } ## ID001
One nested Set (Set nested within a Set):
S foo2 {                     ## ID002
  S bar2 { J vw sleep 0 }                ## ID003
}                                        
Using the Colon Syntax:
Create a visual representation of a hierarchical set structure, with only one job in one Set:
S foo3:bar3 { J vw sleep 0 } ## ID003
Create Sets Each Having Jobs using the Colon Syntax
In this example, two Sets are created, and both will contain jobs.
S foo4 { J vw sleep 0 } ## ID004
S foo4:bar4 { J vw sleep 0 } ## ID004