|
View previous topic :: View next topic
|
| Author |
Message |
bidhucsc
New User
Joined: 24 Dec 2007 Posts: 10 Location: India
|
|
|
|
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 |
|
 |
prino
Senior Member

Joined: 07 Feb 2009 Posts: 1323 Location: Vilnius, Lithuania
|
|
|
|
| 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 |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
| Please post a runtime Trace that shows this happening. |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
"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 |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
how are you reading it ? If you PARSE the record it will not change it to upper case.
Gerry |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Peter,
you are still quick even at your age
Gerry |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Yes Gerry,
sometimes im so fast its frightening me  |
|
| Back to top |
|
 |
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Is that what your girlfriend said to you ?  |
|
| Back to top |
|
 |
PeterHolland
Global Moderator

Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Gerry,
it is girlfriendS  |
|
| Back to top |
|
 |
vasanthz
Global Moderator

Joined: 28 Aug 2007 Posts: 1752 Location: Tirupur, India
|
|
|
|
King Julian is not going to be happy  |
|
| Back to top |
|
 |
bidhucsc
New User
Joined: 24 Dec 2007 Posts: 10 Location: India
|
|
|
|
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 |
|
 |
enrico-sorichetti
Superior Member

Joined: 14 Mar 2007 Posts: 10903 Location: italy
|
|
| Back to top |
|
 |
|
|