HFMIMSIN control statements
You use the HFMIMSIN control statements to specify:
- If the Print is to run in a BMP or DLI region.
- Whether to use a static PSB or if ZDT/IMS is to generate a dynamic PSB to print the IMS data.
- The format the IMS segments are printed in (CHAR, HEX, SNGL, or TABL).
- The ZDT/IMS view to be used when printing the IMS segments. Selection criteria (if specified) are used to determine the IMS segment to be printed. When printing in SNGL or TABL format, ZDT/IMS uses the fields to format the IMS segment.
Each line in HFMIMSIN starts with a $$FILEM and the first line contains
the parameter IPR to specify that ZDT/IMS is performing a Print.
$$FILEM IPR REGNTYPE=DLI,
$$FILEM PSBTYPE=DYNAMIC,
$$FILEM DBDDSN=HFM.IMS.IVP.DBDLIB,
. . .
BMP parameters
DLI parameters
LOG parameters
DYNAMIC parameters
STATIC parameters
The VIEW, VIEWDD, VIEWDSN, VIEWMEM and PRTFORM parameters are described here. All the other parameters in this syntax diagram can also be specified for the Extract (IXB) function. For a description of these common parameters, see Extract (IXB) for details.
- VIEW
- Optional parameter. Specifies whether or not the Print uses a
view.
- N
- The Print does not use a view.
- Y
- The Print uses a view. If Y is specified, you must specify the
view that is to be used as outlined in the VIEWDD, VIEWDSN and VIEWMEM
entries:
- VIEWDD=ddname
- Identifies the DD statement for the sequential data set or PDS(E) and member that contains the view you want your Print to use. The default is VIEWDD.
- VIEWDSN=viewdsn
- The name of the data set that contains the view that you want your Print to use. You may specify a sequential data set or a PDS(E). If you specify a PDS(E), the parameter may also include a member name in parentheses.
- VIEWMEM=viewmem
- Required when the VIEWDSN or VIEWDD parameter specifies a PDS(E) and does not specify the member. Specifies the member of the PDS(E) that contains the view you want your Print to use.
- PRTFORM
- Required parameter. Specifies the format in which the data is
to be printed:
- CHAR
- Prints the data in character format.
- HEX
- Prints the data in hexadecimal "updown" format. This format uses three lines; one for the character, one for the zone digit, and one for the numeric digit of each byte.
- SNGL
- Prints the data in SNGL format. This format splits the data into fields and uses a separate line for each field. Only available when you are using a view.
- TABL
- Prints the data in a tabular format. Splits the data into fields and arranges the fields in columns. Only available when you are using a view.
- KEYPRT
- Optional parameter. Specifies whether or not the Print is restricted
to those records that are specified in a key values data set.
- N
- The Print does not use a key values data set.
- Y
- The Print uses a key values data set. The key values data set contains the key values of the root segments of the records that you want printed.
You specify the key values data set in the KEYSFILE DD statement.
You may specify a sequential data set or a PDS(E) and member.
- KEYLIST(rootkey1,rootkey2,...)
- Optional parameter. Specifies a list of the root segment key values of the database records that you want printed. If the length of a root key value is less than the key length of the root segment, then the function considers it to be the first part of the key and prints all those database records with root key values that match the partial key value.
- KEYRANGE(startkey,endkey)
- Optional parameter. Specifies the start and the end of a range
of root key values. The function prints those database records that
have a root key value in the specified range.
- startkey
- The start of the range of the root key values. If the length of the startkey value is less than the key length of the root segment then the function appends low values (X'00') to the specified value.
- endkey
- The end of the range of the root key values. If the length of the endkey value is less than the key length of the root segment then the function appends high values to the specified value.
- MAXROOTS=number
- Optional parameter. Limits the number of database records that the function prints. When this parameter is specified, the function counts the number of database records that it has printed and terminates when it reaches the specified limit.