By default Vista uses code page 1047, an EBCDIC-to-ASCII translation that has the brackets correct for Unix Systems Services in the USA, and for similar things like C programming on the mainframe. Code page 37 (which has a few characters different from 1047) was historically used on mainframes in the USA.
Screen Code Page Setting
You can change the code page if you want in Vista. Click the Options/Options menu, then the Misc tab, and adjust the Screen Code Page option as needed:
Comparing 1047 with 37
Here is an image of all printable characters using code page 1047. You can see the brackets [] at x'AD' and x'BD' which is what USS and C programming use:
And here is the same display switched to code page 37. Almost all the characters are the same as above, but you can see the [] brackets have changed to x'BA' and x'BB' which C programming does not like at all:

Note that you can change the code page in Vista without logging off and without even leaving an application. But after making a code page change, you do need to cause the mainframe application to resend the data on the screen. So in the example above, I exited and re-opened that member.
Code page changes for other countries than the USA may have many other changes, so be aware of that.
CCSID and Mainframe Applications
The CCSID (Coded Character Set IDentifier) is simply the number of the code page (1047, 37, etc.) that is passed from the terminal emulator to the mainframe application. Applications that typically will ask the terminal for this are VTAM, ISPF, and probably others like CICS.
ISPF, for example, obtains the CCSID from the terminal emulator when ISPF starts, and stores it in an ISPF variable named &ztermcid. ISPF applications can then easily check the CCSID value if they want, just by checking that variable. For example, here's a user-made panel that displays it:

And when we run that panel using ISPF 7.2 for testing:

DB2 Administration Tool, SPUFI, and Perhaps Other ISPF Programs
DB2 has been known to check the CCSID in various ISPF applications, issuing a warning such as the example below:
My theory is that the designers want to make sure the data you are viewing appears exactly as it was entered, including special characters such as brackets. I believe there are ways to tell DB2 what code page to use, but the default appears to be 37 which is different than Vista's default. You can remove the warning message in this case by changing Vista to "United States CP 37".
Note that in this case you'll need to exit and re-start ISPF because (as mentioned above) applications tend to read the &ztermcid variable which only gets updated at ISPF startup.
|