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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DDS - for characters to uppercase

Status
Not open for further replies.

George221

MIS
Dec 2, 2005
50
US
Hi,
Is it possible for define a field in DDS so it forces/converts characters to uppercase?
Thanks.
 
If your goal is case-insensitive search (equal weight given to upper/lower case characters), then Mercury2's answer is what you want to do.

Other than that, if you want to make sure all of the data is entered in uppercase only, simply don't use the CHECK(LC) keyword on the data fields in the screen file. You can't force a constraint at the file level to force uppercase, as far as I know.

Solum potestis prohibere ignes silvarum.

 
Here is the easy way:

Code:
     A*ARCUS - CUSTOMER MASTER FILE                             
     A*                                                         
     A                                      [COLOR=red]ALTSEQ(*LIBL/ALTTBL)[/color]
     A          R CUS                       PFILE(ARCUS)        
     A*                                                         
     A          K CUSLNM                                        
     A          K CUSFNM                                        
     A          K CUSNO

The ALTSEQ keyword on the logical file is what does it. The access path on this logical is by case-insensitive last name, case-insensitive first name, and then by customer number (DDS ignores the ALTSEQ keyword for non-character fields).

Solum potestis prohibere ignes silvarum.

 
Oops. I just realized that ALTTBL is something we created for our own use.

If your files are, say, code page 37 (USA English), use the table QUSRSYS/Q037 instead. Do a WRKTBL QUSRSYS/*ALL and you willsee all of the tables that are there. Or you can create your own by cloning one and changing it.

Solum potestis prohibere ignes silvarum.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top