CSM to z/OSMF migration, error message Received: 500 Reason Code: Internal Server Error
search cancel

CSM to z/OSMF migration, error message Received: 500 Reason Code: Internal Server Error

book

Article ID: 262294

calendar_today

Updated On:

Products

CHORUS SOFTWARE MANAGER COMMON SERVICES FOR Z/OS

Issue/Introduction

Working with the CSM2ZOSM REXX utility to migrate the SMP/E Environments from Chorus Software Management (CSM) to a z/OSMF Server. 
  
Found the following error message during the execution of the CSM2ZOSM REXX.    

AddJson = { "name": "CA_PRODUCT_NAME", "system": "CAXX ", "description": "Migrated from CA CSM", "globalzone": "DATA.SET.NAME.CSI",
 "targetzones": Ý "CAIT0" ¨  }                                                                                                    
                                                                                                                                   
Invoking REST API to authenticate with z/OSMF                                                                                      
Invoking REST API to add a Software Instance.                                                                                      
The z/OSMF server did not respond with the expected HTTP status code.                                                              
Expected: 200                                                                                                                      
Received: 500                                                                                                                      
Reason Code: Internal Server Error                                                                                                 
Response: C$"reason":"2","messages":C."The request could not be completed because an error occurred. Error: C."Unexpected character
ufffd' on line 1, column 1C.""B(C<                                                                                                 

Environment

Release : 6.0

Resolution

If you browse the CSM2ZOSM REXX file in the PC with Notepad you will find the function:

AddJson = ,
  '{',
      '"name": "'InstanceName'",',
      '"system": "'ZosmfSystem '",',
      '"description": "'SwiDescription'",',
      '"globalzone": "'csi'",',
      '"targetzones": [ 'zone' ]',
      categories,
  '}'

The CSM2ZOSM REXX access the z/OSMF Server, that runs on USS and normally this is installed with Code Page IBM-1047.
The [ ] characters when the CSM2ZOSM REXX file is transferred to z/OS TSO/ISPF session have to be maintained in Code Page IBM-1047. 
  
Code Page IBM-1047: [ = X'AD'     ] = X'BD' 
 
For example if you work with Code Page IBM-037 (US) in the z/OS 3270 Emulator (TSO/ISPF) session, to avoid this problem the CSM2ZOSM REXX file from the PC to z/OS TSO/ISPF session has to be transferred working with Code Page IBM-1047. 
  
Note for Code Page IBM-037, only two characters are different from Code Page IBM-1047, right square bracket ] and left square bracket [. 
  
If you work with a Code Page in the z/OS 3270 Emulator (TSO/ISPF) session with more differences for special characters then it is difficult to update all these special characters in the z/OS TSO/ISPF session. In this case the recommended action would be to work with the Code Page IBM-037  in the z/OS 3270 Emulator (TSO/ISPF) session just to run the CSM2ZOSM REXX.