|
Rishi,
Highlighting and "colors" etc., and "embedded images" and attachments,
never make the trip through the list servers at midrange.com -- never
have, never will. You could post an image at e.g. imgur and then paste a
link to it in your replies to these lists.
As to your problems with the code, the problem is not with the IBM i or
those APIs, but with you. You cannot simply take any old sample code, and
just cut and paste it, willy-nilly, and expect it to work.
Myself and others have tried to explain to you, in numerous replies to
this thread, both on the list and "off-list" (due to attachments), there
are multiple issues with your approach to this problem. Here are the top
ones:
#1. that web site you frequently reference returns results in a BASE64
encoding. You have made no attempt to deal with that, yet you seem to think
you can just feed that data into the "cipher()" MI built-in function, or
the SQL DECRYPT_CHAR function, and get some meaningful results? (In
fact, that web site offers an option to return the data in HEX notation;
that should be easier for you to work with.)
#2. that web site, like most web pages, works in ASCII or UTF-8. So the
data returned is also encoded as UTF-8. Yet you seem to think you can just
type that into a string literal constant value (INZ ...) in ILE RPG IV, and
feed that into the "cipher()" built-in function, and get back meaningful
results. Again, you have made no attempt to deal with that issue, e.g. by
translating the data into EBCDIC, either before or after you decrypt it.
#3. you have now repeatedly asked many questions related to this, and
many on this list have provided some very good answers, by providing links
to various documentation and sample code and web sites, etc. -- and yet,
you continue to just blindly pound away at this, apparently by cutting and
pasting various snippets of code, and somehow you seem to expect it all to
"just work." It appears that you have made very little effort to read
any documentation or search the web to find answers for yourself -- you
just keep asking questions here, over and over, expecting someone to
provide you with a solution.
That is not the best way to get good results from these lists. I suggest
you read this web page, that explains how to ask better questions in order
to get better answers from these kinds of lists, groups and forums:
http://catb.org/~esr/faqs/smart-questions.html
If you continue to just keep asking the same dumb questions, over and over
again, most readers will conclude that you are a clueless "noob" and simply
ignore your questions and your continued pleading for assistance.
I hope this helps you.
Sincerely,
Mark S.Waterbury
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
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.