IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

To Conver Lower case to Upper Case


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramankapoor

New User


Joined: 27 Feb 2006
Posts: 23
Location: delhi

PostPosted: Thu Mar 16, 2006 1:05 pm
Reply with quote

To Conver Lower case to Upper Case we use the sort Card Like below :

SORT FIELDS=(COPY)
OUTREC FIELDS=(1,45,46,3,TRAN=LTOU)

Can u Pls what we are defining in the Control card statment like
(1,45,46,3,TRAN=LTOU)
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Mar 16, 2006 7:18 pm
Reply with quote

ramankapoor,

You will probably have better luck with this question in the DFSORT forum.
icon_razz.gif

Dave
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Thu Mar 16, 2006 7:56 pm
Reply with quote

hy ramankapoor,

wait for Frank, he will help you...

martin9
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Thu Mar 16, 2006 9:03 pm
Reply with quote

Hi Raman,

Quote:
SORT FIELDS=(COPY)
OUTREC FIELDS=(1,45,46,3,TRAN=LTOU)

I am not sure, what is the LRCEL of your file. But this SORT Card says not to interfere with first 45 chars & to change next 3 chars to Upper Cases.

I hope it clears... But lets wait for Frank Openion...

Regards,
Priyesh.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 290
Location: Basel, Switzerland

PostPosted: Thu Mar 16, 2006 9:36 pm
Reply with quote

hy folks,

yeah for dfsort/icetool stuff, frank is best...
i'm always impressed about his solutions,
thanks frank...

martin9
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Thu Mar 16, 2006 9:39 pm
Reply with quote

Quote:
OUTREC FIELDS=(1,45,46,3,TRAN=LTOU)


1,45 says to copy positions 1-45 in the input record to positions 1-45 in the output record with no changes.

46,3,TRAN=LTOU says to copy positions 46-48 in the input record to positions 46-48 in the output record and to convert any lower case input characters to upper case output characters.

The output records will be 48 bytes long.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Zunit Test case editor error Testing & Performance 4
No new posts usage of CASE in WHERE clause DB2 10
No new posts COBOL -DB2 SQL code to have GROUP BY ... DB2 21
No new posts RFE: DB2 support for mixed case names. DB2 0
Search our Forums:


Back to Top