$IM-FSA

Build your own field search argument (FSA) to use with the IM-FLD call.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Target:

IMS DB

Syntax:

$IM-FSA fsaname segment
... [field1[/picture/] operator operand1
... [field2[/picture/] operator operand2]
                .
                .
 ... [field10[/picture/[ operator operand10]

Parameters:

field

Segment field name; can be 8-character IMS field name or the corresponding COBOL record name.

fsaname

COBOL data name for the generated FSA; references the FSA in $IM-FLD.

operand

Value to test against field in a field verify, or actual field value in a field change.

operator

Valid operators for a field verify are:

E Verify that field and operand are equal.

G Verify that field is greater than operand.

H Verify that field is greater than or equal to operand.

L Verify that field is less than operand.

M Verify that field is less than or equal to operand.

N Verify that field is not equal to operand.

 

Valid operators for a field change are:

+ Add operand from field.

- Subtract operand from field.

= Set field to value of operand

picture

COBOL picture; if not specified, AMB calculates picture from field length and field type.

segment

The segment referenced by the FSA; can be eight-character IMS segment name or the corresponding COBOL field name.

Comments:

Refer to your IMS documentation for more information on $IM-FSA.