Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using special characters in ASCII / EBCDIC

Status
Not open for further replies.

spectra01

Programmer
Jun 1, 2002
2
DE
Is it possible do define an alphabet which includes the german special characters like "Ä" "Ö" and others so that the condition "IF .... IS ALPHABETIC " becomes true if these characters are included in the string beeing examined?

Do You have an example?

 
Hi Spec,

I've never used it for Alphabets, but you can take a look to the SPECIAL-NAMES pgraph. I know that some had problems tying to use the ALPHABET clause. For one thing, it has collating sequence implications; if you just want to do the test you mentioned, you can try using the CLASS clause. I've used that without problems. It goes something like this:
Code:
CONFIGURATION SECTION.
I don't know if your special chars replace the A and O or appear as additional chars in the alphabet, so use one of the following.  

 SPECIAL-NAMES. CLASS GERMN-ALPHA IS 'A' THRU 'Z' 'Ä' 'Ö'.
 SPECIAL-NAMES. CLASS GERMN-ALPHA IS 'B' THRU 'N'
                                     'P' THRU 'Z' 'Ä' 'Ö'.
Then, in your PD,

 IF MY-STRING IS GERMN-ALPHA .....

HTH, Jack.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top