VSPEC:  Set maximum physical width and height

(Optional) A composite (unformatted) variable used to configure paging options. It should be mapped as:

MAP1 VSPEC

MAP2 VWIDTH,B,2

MAP2 VROWS,B,2

VWIDTH is the maximum width of a memo pad and VROWS in the maximum length (or height) of the memo pad. VWIDTH and VROWS must be at least as large as the memo window specified by ĄSTROW, STCOL, ENDROW, ENDCOL.

If they are equal to the window size specified by STROW, STCOL, ENDROW and ENDCOL, then paging is effectively disabled.

If they are larger, they define the limits of scrolling in both the horizontal and vertical directions.

If VSPEC is not specified, the default for VWIDTH is 132 minus STCOL and the default for VROWS is arrived at by dividing the smaller of 6000 bytes and the amount of free memory by VWIDTH. (6000 bytes was chosen as a likely upper limit for memo pad size.)

When establishing suitable values for VWIDTH and VROWS, consider that the entire buffer must be cleared each time INMEMO is called, so for very large buffers there may be a noticeable delay when calling INMEMO. Also consider the range of uses of the memo text. For example, if it is to show on reports, then you may be limited by the report format to a certain number of columns or lines. A very important consideration is the amount of memory available at run time on each of the user jobs.

If you specify VSPEC and the job doesn't have enough memory, you will get an insufficient memory error. However, if you use the defaults (by not specifying VSPEC), INMEMO will automatically adjust the limits to fit the available memory (although this may cause longer memos to be truncated when they are edited).