Parameters
The following table describes the parameters:
The following table describes the reason codes in Substation ES:
Example: COBOL format of data structure and the call.
01 HUB-NAME PIC X(4) VALUE SPACES.
01 WS-TYPE PIC X VALUE 'L'.
01 WS-REASON PIC S9(8) COMP.
01 WS-RETURN PIC S9(8) COMP.
01 WS-LOGREC.
05 WS-LOG-LEN PIC S9(4) COMP-1.
05 WS-LOG-DATA PIC X(32767) VALUE SPACES
CALL "SXGAWLOG"
USING BY REFERENCE HUB-NAME,
BY REFERENCE WS-TYPE,
BY REFERENCE WS-LOGREC,
BY REFERENCE WS-REASON,
RETURNING WS-RETURN
END-CALL.
Example: C format of data structure and the call.
typedef struct
{
short length; //length of data in next array
char data[32767];
} logrec;
#include “SXGHWLOG.h”
int RC;
int reason;
RC = SXGAWLOG(
“HUBA”,
“L”,
&logrec,
&reason);
Copyright © Cloud Software Group, Inc. All rights reserved.
