× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



 
Thanks chuck,
 
I wrote a RPG program which validates special characters, Numeric, lower and upper case.
 
If validations fails program returns back 1.
 
 
Now I have a different problem; when the password is passed to the program by default the password values are changing to upper case though I gave it in lower case.
 
Example : If my password is john1, when the program is called  through CHGPWD the password values are just converting to upper case JOHN1
 
As another example I wrote a RPG program which accepts a parameter. Now when call the program using CALL XXX Parm  john, password values are changing to JOHN1.
 
If I call the program with the single codes i.e CALL XXX Parm('john1'), the parameter values remains same i.e john1.
 
can some please suggest. why this is happening, do I need to setup some values.
 
Thanks in advance.
 
 
 
 


________________________________
From: CRPence <CRPbottle@xxxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Sent: Wednesday, 13 March 2013 3:11 PM
Subject: Re: Not logged to the system.

On 13 Mar 2013 12:57, CRPence wrote:
On 13 Mar 2013 12:07, John Mathew wrote:
found some useful link, but really not understanding which part I
have to take from the code for my requirement.

can some please suggest.

http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/rzarl/rzarlpwdpgm.htm


Because the stated requirement was to ensure that a user must
"Include upper case and lower case along with special character in
password", the only option is to use the latter example as a model,
whereby the program is a registered exit; i.e.: using the
"PWDEXITPGM1 - Password validation exit 1" as the model for what
could be done.

However I would tend to avoid using CL due to the CCSID being passed
as a /field/ of the first parameter to the exit-program, in order to
describe the password data.


  FWiW SJL had posted a copy of RPG code [with an unresolved issue] in
the past.  The code appears to [attempt to] deal properly with the CCSID
being passed with the password string [albeit part of the problem with
the code].  The thread discussing the problem with the code, and the
link to the code:
http://archive.midrange.com/rpg400-l/200909/threads.html#00170
http://code.midrange.com/b5e4e02b63.html

  I would guess that is more likely to be a better model to follow.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.