View previous topic :: View next topic
|
Author |
Message |
umed
New User
Joined: 13 May 2005 Posts: 38
|
|
|
|
Hi,
suppose i have a file having following data :
Code: |
1 AMOL 2000
2 umed 3000
3 Ram 4000
4 SHAM 100
|
Is there any way to get output like this :
Code: |
1 AMOL 2000
2 UMED 3000
3 RAM 4000
4 SHAM 100
|
thanks in advance,
umed |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
leo_sangha
New User
Joined: 11 Aug 2005 Posts: 85 Location: England
|
|
|
|
Hi Umed ,
This control card converts first 15 characters from the Lower to Upper case
Code: |
SORT FIELDS=COPY
OUTREC FIELDS=(1:1,15,TRAN=LTOU)
|
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Umed,
Here's a DFSORT job that will do what you asked for. I assumed the field you want to convert to uppercase is in positions 10-13, but you can change the job appropriately for a different starting position and/or length.
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(10:10,4,TRAN=LTOU)
/*
|
|
|
Back to top |
|
|
|