FILEIO Subroutine
Change the Code Page conversion tables.
call SetEBCDICCodePage(CODE_PAGE_IV)
CODE_PAGE_IV
An integer variable containing the EBCDIC code page as used on the Mainframe.
Description
SetEBCDICCodePage( ) allows you to change the tables used to convert characters between the EBCDIC used on the Mainframe and the ASCII used by the workstation. This routine with affect all files that are opened with the EBCDIC mode letter.
Depending on what EBCDIC code page in configured on your Host Mainframe, you may need to use this routine to ensure the characters are correctly mapped for display on the Workstation. Typically only special characters and symbols differ between the different code page.
This routine relies on the Common Services Verb library supplied with your terminal emulation package to create the required conversion tables.
Errors
FIO_E_MISSINGLIBRARY
The Common Services Verb library supplied with the third party Terminal Emulation package cannot be located.
FIO_E_MISSINGFUNCTION
The routine to create the code page conversion tables within the Common Services Verb library (i.e. "ACSSVC") could not be located.
FIO_E_TABLENOTBUILT
The Common Services Verb library has failed to create the code page conversion tables, the existing tables will continue to be used.
FIO_E_INVALIDCODEPAGE
The supplied EBCDIC code page number is outside the range of acceptable values.