AMT Help Files
Home Development Command Translation CICS Commands WEB WRITE HTTPHEADER

WEB WRITE HTTPHEADER

COBOL Java
EXEC CICS WEB WRITE HTTPHEADER ibmCics.webWrite

Syntax

ibmCics.webWrite(new WebWriteOptions()
  .httpHeader(<HttpHeader>)
  [.nameLength(<NameLength>)]
  .sessToken(<SessToken>)
  .value(<Value>)
  [.valueLength(<ValueLength>)]
  [.noHandle(true)]
);

Parameter(s)

<httpHeader>
Name of the HTTP header to write.
<NameLength>
Optional, length of the HTTP header name.
<SessToken>
The session token of the connection.
<Value>
Value of the HTTP header to write.
<ValueLength>
Optional, length of the HTTP header value.
<noHandle>
Optional boolean. If set to true, exceptions created by this command will be ignored.

Example(s)

COBOL Java
EXEC CICS
    WEB WRITE HTTPHEADER(WS-HTTPHEADER)
        SESSTOKEN(WS-SESSTOKEN)
        VALUE(WS-HEADERVALUE)
END-EXEC.
                
ibmCics.webWrite(new WebWriteOptions()
  .httpHeaderName(locDef.ws_Httpheader.getStrValue())
  .sessToken(locDef.ws_Sesstoken)
  .httpHeaderValue(locDef.ws_Headervalue.getStrValue())
);
                

Contents

 Go to top