This function returns information from an ILOG subfile.
Form 1:
handle = ILOG(OBTAIN)
Form 2:
ILOG(POINT,handle,lognum,subfile,recnum,[direction])
Form 3:
record = ILOG(GET,handle)
Form 4:
ILOG(RELEASE,handle)
Parameters
Numeric ID for an internal workspace. A handle must be obtained and then passed to the function with each subsequent call.
Obtains a new value for the handle argument. This value must be passed to the function on each subsequent call.
Positions to a specific record.
ILOG file number, 0 through 99.
Subfile number within the ILOG file, 0 through 9.
recnum
Record number in the log to locate (POINT). Specify the relative number of the record, or specify FIRST for the first record, or LAST for the last record.
Returned record.
direction
Direction in which the subfile is read. Specify FORWARD or BACKWARD.
Default: FORWARD
Retrieves a record. The results are placed in the ilog_ variables, as shown in the following section.
Releases the storage that is associated with handle. Automatically performed at IMOD task termination.
When an ILOG record is read (GET argument), the retrieved information is placed in a series of predefined REXX variables:
ASID of the issuer of the WTO.
Date the message was issued, in yymmdd format.
Job ID of the issuer of the WTO.
Job name of the issuer of the WTO.
Unformatted ILOG record.
Number of message lines in the ILOG record.
Sequence number of a record.
GRS system name of the issuer of the WTO.
Individual line of text.
Time the message was issued, in hh.mm.ss format.
Record type set by ILOGR(). WTOs are recorded with type = 0.
The ILOG() and ILOGG() functions handle records from the ILOG subfiles in different ways:
Function |
Treats ILOG subfiles as... |
Useful for... |
---|---|---|
ILOG() |
Individual files. Specify the ILOG file number and the specific subfile you want to process. |
Copying a single subfile for archiving purposes |
ILOGG() |
Parts of a single file in chronological order. |
Searching for all occurrences of a particular message |
To read an ILOG subfile
ARG n MISSING OR INVALID
END OF LOG
REQUESTED LOG NOT FOUND
INVALID FILE HANDLE
REQUESTED LOG NOT ACCESSIBLE
REQUESTED RECORD NOT IN LOG
Example
handle = ilog('obtain') /* Get a new handle */ result = ilog('point',handle,0,2,'last','backward') /* Start at end */ ilog('get',handle) == '' /* Got the last record */ ilog_asid == '1D' /* For example */
Copyright © 2014 CA Technologies.
All rights reserved.
|
|