Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Avoid C2X convesion to upper

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
Author Message
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 479
Location: Milan, Italy

PostPosted: Thu Sep 15, 2005 1:50 am    Post subject: Avoid C2X convesion to upper
Reply with quote

Hi members... I've got a problem with a Rexx.
I'm trying to crypt a string and in a step of this function I do a conversion from hex to char.
Well, when i read the record in another step, and I put it in the stem, the record is converted to upper case.
The problem is that "s" (A2) is not equal to "S" (E2).

So my ask is: there's a way to avoid this problem?

Many thanks in advance.
Back to top
View user's profile Send private message
References
PostPosted: Thu Sep 15, 2005 1:50 am    Post subject: Re: Avoid C2X convesion to upper Reply with quote

MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 479
Location: Milan, Italy

PostPosted: Fri Sep 16, 2005 10:11 pm    Post subject: [Solved]
Reply with quote

Well I solved my problem only studing.
I realized that the problem occur when the data are placed in the Data Stack through PULL command but not when I use a Stem(I've not tested the QUEUE but now I know that work as a Stem).
Reading the manual I found that the difference, if I well understood, is that when we use PULL, data is moved in the Data Stack and, as default, all the value are changed to Upper Case but when you use a Stem data, instead to inserted in the Data Stack, data is moved in a list of variable without do anything to the line.

After a miticulous read of the PULL chapter in Rexx Manual I found that to avoid this traslation with this command(that somtime is fundamental) is sufficient use the PARSE PULL instruction.

I hope that this kind of solution will be useful also for you.
I hope too that my english will clear to the reader.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1