IBB REXX procedure (Batch Browse)

The REXX Procedure run by Batch Browse calls IBB functions to process the database with or without a view.

Using a view, you have limited control over how FM/IMS can navigate the IMS database. By specifying Selection Criteria in the view, FM/IMS only returns the IMS segments that match the selection criteria specified.

The IBB calls available when using a view are:
GETIMS
Retrieve IMS segments using the view specified.
PRINT
Print an IMS segment in CHAR, HEX, SNGL, or TABL format.
SETRC
Set the IBB job step return code.
VIEWIMS
Create and load a view to be used by the REXX procedure to retrieve IMS segments.
VIEWPOSN
Position on an IMS segment prior to invoking the GETIMS call. This allows you to start processing the IMS database from a point within the database.
When not using a view, you can navigate the IMS database using the GETIMS call. This mode is similar to issuing IMS calls within a program. You can:
  • Retrieve segments based on the segments key values.
  • Retrieve a segment's children.
  • Position on a segment's parent or its root segment.

The IBB calls available when not using a view are:

GETIMS
Retrieve IMS segments.
PRINT
Print an IMS segment in CHAR, HEX, SNGL, or TABL format.
SETRC
Set the IBB job step return code.
VIEWIMS
Create and load a view to be used by the REXX procedure. When not processing the database using a view, FM/IMS uses the IMS segment layouts and fields in the view to:
  • Print in SNGL or TABL format.
  • Generate an IMS SSA when retrieving an IMS segment and the WHERE clause specifies fields from the view.

Related topics