× 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.



I can perfectly duplicate your situation at last!
I know EXACTLY what is wrong!

Your job CCSID is 65535.

Many of us in the United States have ran the following
CHGSYSVAL SYSVAL(QCCSID) VALUE(37)
That may require more study before implementing in your shop.
So, to test, try this
CHGJOB CCSID(37)
Or some more appropriate regional value.
And try again.
To duplicate your error I ran
CHGJOB CCSID(65535)
And then I got
call rishi
Parameter 2 of function ENCRYPT_AES not valid.
Argument 02 of function ENCRYPT_AES not valid.
DSPLY 171-
DSPLY ██02██ENCRYPT_AES██*N██*N██1████████████████████████
DSPLY
Cause . . . . . : Parameter 2 specified in function ENCRYPT_AES is not valid
for use for reason code 6. The reason codes and their meanings follow:
6 -- Parameter must be a valid CCSID.

This is clearly spelled out in the manual:
password-string
An expression that returns a character string value with at least 6 bytes and no more than 127 bytes. The expression must not be a CLOB and the CCSID of the expression must not be 65535. The value represents the password used to encrypt the data-string. If the value of the password argument is null or not provided, the data will be encrypted using the ENCRYPTION PASSWORD value, which must have been set using the SET ENCRYPTION PASSWORD statement.

Running with a CCSID of 65535 is the default IBM gives you to give you ENDLESS grief and encourage you to pick an appropriate value for the system value QCCSID.


Rob Berendt

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.