CSM2ZOSM REXX exec fails with SEVERE:IZUD9019E Unexpected Character
search cancel

CSM2ZOSM REXX exec fails with SEVERE:IZUD9019E Unexpected Character

book

Article ID: 250323

calendar_today

Updated On:

Products

CHORUS SOFTWARE MANAGER

Issue/Introduction

Using the CSM2ZOSM Rexx exec to migrate a CSI into z/OSMF encountered the following failure inserting a new SW instance:

SEVERE:IZUD9019E: The request could not be completed because an error occurred. Error: Unexpected character ? on line 1, column 176
java.io.IOException: Unexpected character '?' on line 1, column 176

Environment

zOSMF

Cause

The problem encountered is due to an encoding or code page mismatch on the CSM2ZOSM Rexx Exec side.  Counting the characters in the request body (AddJson rexx var) and the unexpected character matches with the '[' character which opens the array of values for 'targetzones' property.  It appears the zosmf server can not recognize the character as a square bracket in the POST request body when inserting a new SW instance, and shows the representation for a x'AD' for a left bracket as Ý instead of [

Resolution

Manually edit the CSM2ZOSM Rexx exec with Hex On to change the '"targetzones":   'zone'  ', statement found in the Addjson section of the Rexx Exec:

AddJson = ,                                 
  '{',                                      
      '"name": "'InstanceName'",',          
      '"system": "'ZosmfSystem '",',        
      '"description": "'SwiDescription'",', 
      '"globalzone": "'csi'",',             
      '"targetzones": . 'zone' .',  =======> edit this line with 'Hex On' changing x'AD' and x'BD' to a x'BA' and x'BB' for '[' and ']' brackets
      categories,                           
  '}'  

 

If the brackets are already x'BA' and x'BB', please change them to x'AD' and x'BD'.. Possibly using another character set/code page requires the change of brackets..                    

 

 

 

Additional Information

Pertinent link for Why are the square bracket characters displayed wrong?