z/OS ISPF Software Configuration and Library Manager Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


FLMLRIPF Script and OS/2 IPF Source Parser

z/OS ISPF Software Configuration and Library Manager Guide and Reference
SC19-3625-00

Purpose

The FLMLRIPF parser supports Script and OS/2 IPF source files. The parser is written in REXX. The includes found by the parser are associated with an include set that is the extension from the include statement (see FLMINCLS macro).

Functions

The parser uses the following syntax rules to locate dependency names:
  • The search for tokens is restricted to uncommented text.

    Lines beginning with .* are recognized as comments.

  • Include dependencies are generated in the following conditions:
    • The first token on the line is .im. The second token on the line is the include name. The include set will be the extension from the file name.
    • The first token on the line is :artwork. The token following name= is the include name.
  • Tokens inside strings are ignored.

Include names are generated after removing excess characters (all characters up to and including the far-right directory separator character (default is \), if any, and all characters from the first period (.) to the end of the file name). Any underscore characters (_) or blanks are replaced by at-signs ('@'). Include names longer than eight characters are truncated to eight characters and a return code of 4 is issued. The include-set names are generated from the characters following the first period (.) to the end of the file name. Include-set names are also truncated to eight characters and underscore characters and blanks are replaced by at-signs. The following table illustrates how include and include-set names are derived from source statements.

Table 1. Examples of include and include-set names derived from source statements
Source statement Include name Include-set name
.im abc abc  
:artwork name='tile_c_1.bmp' runin. tile@c@1 bmp

Another function of the parser is to gather statistics or metrics for each module to be parsed. SCLM saves 10 statistics, but only 4 are generated by this parser. This parser defines the ten statistics as follows:

Total lines
The total number of records in the file.
Comment lines
This value is always 0.
Noncomment lines
This is the same as the total lines.
Blank lines
The number of lines that contain only blanks.
Prolog lines
This value is always 0.
Total statements
This value is always 0.
Comment statements
The total number of /* */ pairs in the member.
Control statements
This value is always 0.
Assignment statements
This value is always 0.
Noncomment statements
This value is always 0.

Parameters

The following guidelines apply when specifying parameters:
  • The order of the parameters is not important.
  • See the language definitions provided by SCLM for the actual use of the parameters for FLMLRIPF.
  • The directory separator character defaults to \.

The DIR_SEPARATOR keyword parameter may be used to specify a directory separator character.

The following keyword parameters, separated by commas, are required as input to FLMLRIPF
LISTINFO
Pointer to the SCLM list information record. This parameter is required and must be set to @@FLMLIS.
LISTSIZE
The size of the LISTINFO buffer. This parameter is required and must be set to @@FLMSIZ. The parser checks to make sure that the LISTSIZE parameter is large enough to hold at least one entry of 228 bytes.
STATINFO
Pointer to the SCLM statistics information record. This parameter is required and must be set to @@FLMSTP.

Return codes

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014