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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Summing on Mixed Case Literals Roy Ware SYNCSORT 3 Tue Jan 03, 2017 10:18 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


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