Hi,
I have an input file of length 20 and RECFM = FB.
Input file will look as mentioned below.
Sample Input: RECFM = FB/LRECL=20
Code:
MEGA CONSTRUCTION
EUROPEAN INVESTMENT
ARB SILICON INC
i would like to convert the upper case words to Title case (i,e) only the first letter of each word should be in upper case and rest of the letters should be in lower case.
Sample Output: RECFM = FB/LRECL=20
Code:
Mega Construction
European Investment
Arb Silicon Inc
Please let me know if this can be achieved using DFSORT.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Gururajan Balaji,
FYI, here's another way to do it with DFSORT. I assumed each record could have a maximum of three words (although the technique could be extended to more):
Kolusu Could you please explain your logic. As per my understanding the FINDREP is supposed to replace all the lower case alphabets to upper cas e alphabets starting from position 2. But the sort card replaces the lower case to upper case only if it is a first letter of the word. How is this achieved?