× 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 see Scott has offered a fixed up version so I won't go any further.

As to MOVE - sorry but there was a reason it was dropped - a very high percentage of programmers did not understand the many nuances of the way it worked and it therefore became a major cause of unintentional and hard to detect errors. I like to be able to look at code and have a good idea of what it does. With MOVE you have no idea what it does without knowing the data type, size (and decimals) of both operands. That is an accident waiting to happen.



On May 26, 2020, at 3:27 AM, Patrik Schindler <poc@xxxxxxxxxx> wrote:

Hello Jon,

Am 25.05.2020 um 22:35 schrieb Jon Paris <jon.paris@xxxxxxxxxxxxxx>:

"Could these two listed program entry points possibly harm? Because it's two instead of one? The rest of the RPG program runs fine (as long as I don't call pw_rand)."

If you create the C as a *PGM with a main() then two is what I would expect. However I don't think it should matter. You are binding at the *MODULE level and the bind wouldn't work if it couldn't see pw_rand.

Thanks for clarification!

I'll grab the save file if I have time and take a look.

Thank you in advance!

By the way ... you do know that MOVE is a deprecated opcode and has been for 15 years or so? If you must code fixed format <yuck> then use Eval for the assignment.

Please don't make me arguing with you about deprecation of stuff which proved to work for decades. :-)

:wq! PoC

PGP-Key: DDD3 4ABF 6413 38DE - https://www.pocnet.net/poc-key.asc


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx 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 thread ...

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.