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.
BYTESPROVIED OF APIERROR = 256
BYTESAVAIL OF APIERROR = 35
ERRORID OF APIERROR = 'CPF4AA7'
ERRORRSVD OF APIERROR = '0'
ERRORINFO OF APIERROR =
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.
reason code indicates the problem that was detected with the password
Message ID . . . . . . : CPF4AA7 Severity . . . . . . . :
Message type . . . . . :
Date sent . . . . . . : 10/10/18 Time sent . . . . . . :
Message . . . . : Password value not valid. Reason code 16.
Cause . . . . . : The specified password value does not conform to
password composition rule *MIXCASE1 specified by the QPWDRULES system
The reason code indicates the problem that was detected with the
1-password does not contain enough letter
2-password does not contain enough digit
3-password does not contain enough special
4-password contains too many letter
5-password contains too many digit
6-password contains too many special
7-password begins with a letter
8-password begins with a digit
9-password begins with a special
10-password ends with a letter
11-password ends with a digit
12-password ends with a special character;
13-password contains adjacent letter
14-password contains adjacent digit
15-password contains adjacent special characters;
16-password does not contain enough mixed case letter
17-password does not contain characters from 3 character
18-password contains user profile
19-password does not contain enough
20-password contains too many
21-password contains a character used more than
22-password contains a character repeated
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.
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
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
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)
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxx for any subscription related
Help support midrange.com by shopping at amazon.com with our affiliate