Question & Answer
Question
Why am I getting RESP=16 and RESP2=45 when executing an EXEC CICS WEB CONVERSE command? I am doing an EXEC CICS TRANSFORM DATATOJSON to create a JSON structure. When I attempt to do the WEB CONVERSE I am not getting a code page conversion.
The CONVERSE command follows:
EXEC CICS WEB CONVERSE POST
URIMAP (WS-URIMAP-NAME)
CHANNEL (OLB-CHANNEL)
CONTAINER (API-CONTAINER-TRANS)
INTO (WS-LARGE-AREA)
TOLENGTH (WS-LARGE-LENGTH)
MEDIATYPE (WS-MEDIA-TYPE)
CLIENTCONV (WS-CLICONVERT)
CHARACTERSET (WS-CHAR-2)
BODYCHARSET (WS-BODYCHAR)
STATUSCODE (WS-STATUS-CODE)
STATUSTEXT (WS-STATUS-TEXT)
STATUSLEN (WS-STATUS-LENGTH)
RESP (WS-EIBRESP)
RESP2 (WS-EIBRESP2)
SESSTOKEN (WS-SESSION-TOKEN)
END-EXEC.
Our media type is defined as 56 bytes:
03 WS-MEDIA-TYPE.
05 FILLER PIC X(39)
VALUE 'xxxxxxx/xxx.xxxxxxx.xxxxx-v1.0+json'.
Our characterset is defined as 40 bytes:
03 WS-CHAR-2 PIC X(05) VALUE
'UTF-8'.
From our testing application/json as a media type generates the proper UTF-8 code page conversion.
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF035","label":"z\/OS"}],"Component":"Web Services","Version":"","Line of Business":{"code":"LOB70","label":"Z TPS"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Product Synonym
CICS/TS CICSTS CICS TS CICS Transaction Server
Was this topic helpful?
Document Information
Modified date:
08 October 2025
UID
dwa1446622