Thank you for your response David & Mark.
But this is what I get after expanding. The 1st message data value should
have been 16. But is showing some strange character.

EVAL APIError
BYTESPROVIED OF APIERROR = 256
BYTESAVAIL OF APIERROR = 35
ERRORID OF APIERROR = 'CPF4AA7'
ERRORRSVD OF APIERROR = '0'
ERRORINFO OF APIERROR =
....5...10...15...20...25...30...35...40...45...50...55...60
1 ' ■*MIXCASE1 '
61 ' '
121 ' '
181 ' '


Please scroll bottom to see the APIErrror value I am getting.



I had to expand the error DS as below.



* API Error Data Structure

d APIError DS

d BytesProvied 10I 0 INZ( %LEN( APIError ) )

d BytesAvail 10I 0 INZ(0)

d ErrorID 7A

d ErrorRsvd 1A

d ErrorInfo 240A



This API validates if new password matches the security rules.

And returns an error message (if there is one) in an APIError



User enters an invalid password. Then the API returns the message Id
"CPF4AA7" in APIError.ErrorId



I know how to get the message text using RTVMSG.

But how can i get the *Message DATA Field value for &1 *part of the message
?



For example CPF4AA7 has this Message Text and value of &1 could be 16.

And value of &2 could be **MIXCASE1*.



Message . . . . : Password value not valid. Reason code *&1*.


Cause . . . . . : The specified password value does not conform to the


password composition rule *&2* specified by the QPWDRULES system value.
The

reason code indicates the problem that was detected with the password
value:





Message ID . . . . . . : CPF4AA7 Severity . . . . . . . :
40

Message type . . . . . :
Escape

Date sent . . . . . . : 10/10/18 Time sent . . . . . . :
14:38:29



Message . . . . : Password value not valid. Reason code 16.


Cause . . . . . : The specified password value does not conform to
the

password composition rule *MIXCASE1 specified by the QPWDRULES system
value.

The reason code indicates the problem that was detected with the
password



value:


1-password does not contain enough letter
characters;

2-password does not contain enough digit
characters;

3-password does not contain enough special
characters;

4-password contains too many letter
characters;

5-password contains too many digit
characters;

6-password contains too many special
characters;

7-password begins with a letter
character;

8-password begins with a digit
character;

9-password begins with a special
character;

10-password ends with a letter
character;

11-password ends with a digit
character;

12-password ends with a special character;


13-password contains adjacent letter
characters;

14-password contains adjacent digit
characters;

15-password contains adjacent special characters;


16-password does not contain enough mixed case letter
pairs;

17-password does not contain characters from 3 character
categories;

18-password contains user profile
name;

19-password does not contain enough
characters;

20-password contains too many
characters;

21-password contains a character used more than
once;

22-password contains a character repeated
consecutively;

23-same character in same position as previous password.



But I am getting this unreadable value for the &1. See it shows blanks &
then question mark.




----
Regards,
Mohan Eashver



On Thu, Oct 11, 2018 at 3:22 PM David Gibbs <david@xxxxxxxxxxxx> wrote:

On 10/11/2018 2:13 PM, Mohan Eashver wrote:
I know how to get the message text using RTVMSG. But how can i get
the *Message DATA Field value for &1 *part of the message ?

Once you have the message id & message data (as Mark said, expand your
error data structure)), you can use the QMHRTVM to retrieve the message
details.

https://ibm.co/2Pufqv4

david

--
David Gibbs
midrange.com

IBM i on Power Systems: For when you can't afford to be out of business!

I'm riding 615 miles (Yes, you read that right) in the American Diabetes
Association's Tour de Cure to raise money for diabetes research, education,
advocacy, and awareness. You can make a tax deductible donation to my ride
by visiting https://lsteml.diabetessucks.net.

See where I get my donations from ... visit
https://lsteml.diabetessucks.net/map for an interactive map (it's a geeky
thing).

I may have diabetes, but diabetes doesn't have me!
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


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-2020 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].