Describes how to save and retrieve record selection criteria during template editing
by using the SR and GR commands on the Field
Selection/Edit panel.
About this task
When working with complex copybooks or templates, you can save and retrieve record
selection criteria to avoid repeated manual entry in subsequent sessions. These
operations are performed from the Field Selection/Edit panel.
Procedure
-
Initializing a criteria table (RA command)
Before saving filters, associate the session with a reference name. This
reference name acts as a container that groups saved expressions.
-
On the
Field Selection/Edit command line, enter:
RA <name> and press
Enter.
-
File Manager creates a reference
group for the specified name.
Note: If you specify a different reference name
(for eg. RA TEST2), a new reference group is
created and subsequent saves are stored under that group.
-
Saving selection criteria (SR) command
After defining record identification (Id) or record
selection (Sel) expressions, follow the below steps to save
the selection criteria.
-
On the command line , type SR (Save Reference) and
press Enter.
-
In the
Edit Function Reference Save panel, specify a
unique name and description.
-
Press Enter to save the criteria.
-
Retriving saved criteria (GR) command
To reuse selection criteria saved in the active reference group:
-
On the
Field Selection/Edit command line, type
GR (Get Reference) and press
Enter.
-
The
Edit Function Reference List panel will appear;
type S next to the desired criteria to select it.