MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Converting lowercase data to uppercase in Easytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
dtech
Beginner


Joined: 18 May 2006
Posts: 2
Topics: 2

PostPosted: Thu Jun 08, 2006 1:03 am    Post subject: Converting lowercase data to uppercase in Easytrieve Reply with quote

Is there a way in Easytrieve to convert a string of lowercase data to uppercase?

Thank you.
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Jun 08, 2006 1:20 am    Post subject: Reply with quote

dtech,

I am also quite new to EASYTREIVE but i have got the solution from the web and try this code.Hope this helps you:
Code:

//INFILE DD *
lower case text
//SYSIN DD *                                   
FILE INFILE                                     
INFILE-STRING 1 80 A                           
INFILE-B      1  1 B OCCURS 80                 S1            W  2 P 0                       JOB                                             
DISPLAY ' INPUT: ' INFILE-STRING               
S1 = I                                         
DO WHILE S1 LE 80                                 
IF  INFILE-B(S1) GE 129 +                     
AND INFILE-B(S1) LE 169                           
INFILE-B(S1) = INFILE-B(S1) + 64           
END-IF                                         
S1 = S1 + 1                                 
END-DO                                         DISPLAY 'OUTPUT: ' INFILE-STRING               DISPLAY ' '             

_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Thu Jun 08, 2006 7:51 am    Post subject: Reply with quote

Shekhar123/dtech,

That *is* NOT the right solution. Check this link where Mike Chantrey explains in detail about the bug in the code.

http://mvsforums.com/helpboards/viewtopic.php?p=5634#5634

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group