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
 

 

Case Sensitivity in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
bidhucsc

New User


Joined: 24 Dec 2007
Posts: 10
Location: India

PostPosted: Fri May 06, 2011 12:38 pm    Post subject: Case Sensitivity in REXX
Reply with quote

Hi,
I am trying to read a file which contains ID and passwords to be input to a JCL SYSIN created by the REXX. Now when I read the ID and password to a string, its converting the string to Uppercase automatically and the upper case letters are not valid. I know this is a property of REXX. Can you please let me know how can I read the string in REXX with changing the case ?

Eg : The file string contains "abcDefGH". When I read, it makes the string to "ABCDEFGH", but I need "abcCefGH". How can I do it ? Please help.

Thanks
Bidhu
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 985
Location: Oostende, Belgium

PostPosted: Fri May 06, 2011 12:44 pm    Post subject: Re: Case Sensitivity in REXX
Reply with quote

bidhucsc wrote:
Now when I read the ID and password to a string, its converting the string to Uppercase automatically and the upper case letters are not valid. I know this is a property of REXX.

You know?

Maybe you should spend a bit more time to RTFM!
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri May 06, 2011 12:48 pm    Post subject: Reply to: Case Sensitivity in REXX
Reply with quote

Please post a runtime Trace that shows this happening.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri May 06, 2011 1:01 pm    Post subject:
Reply with quote

"EXECIO * DISKR yourfile (STEM yourstem. FINIS"

Do i =1 to yourstem.0
Call Proces_Stem_Line yourstem.i
End

Proces_Stem_Line:
Arg line

Parse Arg line line /* this is to keep mixed case */
Return
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri May 06, 2011 1:02 pm    Post subject:
Reply with quote

Hi,

how are you reading it ? If you PARSE the record it will not change it to upper case.


Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri May 06, 2011 1:04 pm    Post subject:
Reply with quote

Hi Peter,

you are still quick even at your age icon_lol.gif


Gerry
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri May 06, 2011 1:17 pm    Post subject:
Reply with quote

Yes Gerry,

sometimes im so fast its frightening me icon_biggrin.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Fri May 06, 2011 1:19 pm    Post subject:
Reply with quote

Is that what your girlfriend said to you ? icon_wink.gif
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri May 06, 2011 1:29 pm    Post subject:
Reply with quote

Gerry,

it is girlfriendS icon_cool.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1445
Location: Azeroth

PostPosted: Fri May 06, 2011 2:36 pm    Post subject:
Reply with quote

Quote:
it is girlfriendS

King Julian is not going to be happy icon_lol.gif
Back to top
View user's profile Send private message
bidhucsc

New User


Joined: 24 Dec 2007
Posts: 10
Location: India

PostPosted: Fri May 06, 2011 2:42 pm    Post subject:
Reply with quote

I was using PULL before to process the line. Now when I added PARSE just before PULL, it worked. Thank you all for the help.

Thanks
Bidhu
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Fri May 06, 2011 2:43 pm    Post subject: Reply to: Case Sensitivity in REXX
Reply with quote

and ... the whole upper/lower case shebang is clearly documented starting from here

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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