OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

6.9.3 CBLDCUTL('CNVEXEC') - Executing character code conversion

Organization of this subsection
(1) Form
(2) Purpose
(3) Data area where the UAP sets values
(4) Data area for which a value is returned
(5) Status codes
(6) Notes

(1) Form

PROCEDURE DIVISION
 
CALL 'CBLDCUTL' USING unique-name-1 unique-name-2 unique-name-3
 
DATA DIVISION
 
01 unique-name-1.
   02 data-name-A PIC X(8)  VALUE 'CNVEXEC'.
   02 data-name-B PIC X(5).
   02 FILLER     PIC X(3).
   02 data-name-C PIC S9(9) COMP VALUE ZERO.
   02 data-name-D PIC S9(9) COMP.
   02 data-name-E PIC 9(9) COMP.
01 unique-name-2.
   02 data-name-F PIC S9(9) COMP.
   02 data-name-G PIC X(n).
01 unique-name-3.
   02 data-name-H PIC S9(9) COMP.
   02 data-name-I PIC X(n).
 

(2) Purpose

Executes the following character code conversion.

Converts character strings consisting of JIS or Shift JIS code into character strings of EBCDIC, EBCDIK or KEIS code. Converts character strings consisting of EBCDIC, EBCDIK or KEIS code into character strings of JIS or Shift JIS code.

(3) Data area where the UAP sets values

(4) Data area for which a value is returned

(5) Status codes

Status code Meaning
00000 Normal termination
02501 Invalid value for the data name. The request code (data-name-A) may be invalid.
02504 Insufficient memory.
The program returns this code also when the control table contains an invalid handle value and when the specified character length covers the first byte of a two-byte code that is contained in the character string to be converted.
02550 A character string contains an invalid code.
02551 The length of the converted character string exceeds the length of the area prepared by the CUP.

(6) Notes