Use the ILOGG() function to return information from an ILOG file.
The ILOGG() function has this syntax:
Form 1:
handle = ILOGG(OBTAIN)
Form 2:
ILOGG(POINT,handle,lognum,recnum,[direction])
Form 3:
record = ILOGG(GET,handle)
Form 4:
ILOGG(RELEASE,handle)
The ILOGG() function takes these arguments.
|
handle |
Numeric ID for an internal workspace. A handle must be obtained and then passed to the function with each subsequent call. |
|
OBTAIN |
Obtains a new value for the handle argument. This value must be passed to the function on each subsequent call. |
|
POINT |
Positions to a specific record. |
|
lognum |
ILOG file number, 0 through 99. |
|
recnum |
Record number to position to, or FIRST or LAST. |
|
record |
Returned record. |
|
direction |
Direction in which the subfile is read. Specify FORWARD or BACKWARD. Default: FORWARD |
|
GET |
Retrieves a record. The results are placed in the ilog_ variables as shown in the following section. |
|
RELEASE |
Releases the storage associated with handle. This is 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. The following table shows these variables and their use:
|
ilog_asid |
The ASID of the issuer of the WTO. |
|
ilog_date |
The date the message was issued, in yymmdd format. |
|
ilog_jobid |
The job ID of the issuer of the WTO. |
|
ilog_jobnm |
The job name of the issuer of the WTO. |
|
ilog_raw |
The unformatted ILOG record. |
|
ilog_seg |
The number of message lines in the ILOG record. |
|
ilog_seq |
The sequence number of a record. |
|
ilog_sysid |
The GRS system name of the issuer of the WTO. |
|
ilog_text.n |
An individual line of text. |
|
ilog_time |
The time the message was issued, in hh.mm.ss format. |
|
ilog_type |
The record type set by ILOGR(). WTOs are recorded with type = 0. |
ILOGG() differs from the ILOG() function in that all subfiles in the ILOG file are treated as one chronologically sequenced file. See the Administration Guide for an overview of ILOG files.
The ILOG() and ILOGG() functions handle records from ILOG subfiles in different ways, as explained in the following table:
|
Function |
Treats ILOG subfiles as... |
Useful for... |
|
ILOG() |
Individual files. You must therefore specify both 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
The ILOGG() function produces these return codes.
101 - 106 ARG n MISSING OR INVALID
121 END OF LOG
122 REQUESTED LOG NOT FOUND
123 INVALID FILE HANDLE
124 REQUESTED LOG NOT ACCESSIBLE
125 REQUESTED RECORD NOT IN LOG
Example
handle = ilogg('obtain') /* Get a new handle */
result = ilogg('point',handle,0,,'last','backward')
/* Start at end */
ilogg('get',handle) == '' /* Get the last record */
ilog_asid == '1D' /* For Example */
ilog_jobnm == 'CUSTAPE'
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |