Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

can we convert values of a field in lower case to upper case

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Wed Oct 26, 2005 3:25 pm    Post subject: can we convert values of a field in lower case to upper case
Reply with quote

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
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Wed Oct 26, 2005 3:33 pm    Post subject: Re: can we convert values of a field in lower case to upper
Reply with quote

http://ibmmainframes.com/viewtopic.php?t=3746

Regards,

Priyesh.
Back to top
View user's profile Send private message
leo_sangha

New User


Joined: 11 Aug 2005
Posts: 85
Location: England

PostPosted: Wed Oct 26, 2005 7:39 pm    Post subject: Re: can we convert values of a field in lower case to upper
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Wed Oct 26, 2005 8:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts BI,TO=ZD Changing Values Tyler Dunbar DFSORT/ICETOOL 4 Tue Jul 25, 2017 12:12 am
No new posts RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am
No new posts Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us