pals wrote:Actuaaly,as output there is nothing to show,it is giving blank spaces only..what shud i do to make cobol understand the chinese characters.bcs i m feeling it is not able to read also.it is corrupting the file.as when i try with normal chars also.it is giving blank spaces.
Are you saying that when you put "normal" English characters in, they are appearing in your VSAM file as blanks as well?
- Ensure that they are blanks, not just some non-displayable character
- If everything is blank, you have a program error in the program writing the record to the VSAM file
- Cobol doesn't have to understand Chinese or any language, it is just manipulating data. Your Chinese characters on the web are represented by one (probably more) byte of data with a particular value. Somewhere-along-the-way these bytes will arrive at your Cobol program, either still in ASCII-encoding or having been converted from ASCII to EBCDIC. The mainframe has different byte values than other systems (using ASCII) to represent the same logical value. Take the space character as an example. In ASCII this is x'20', in EBCDIC (on the Mainframe) it is x'40'. It will be the same for your Chinese characters. You have CODEPAGES to do translation to/from ASCII to EBCDIC.