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



RPG is a compiled language.

Variable names don't really exist. They exist for the convenience of human beings (computer programmers) who find it easier to understand data if it's given a name. However, the compiler runs, it generates code that asks the operating system for locations in the computer's main storage, and then stores the data into those memory addresses.

So when the program is running, there are no variables. There's just addresses in the computer's main storage. Variable names are SOURCE CODE, not compiled code. They do no good at run time.

Why not use a subprocedure?



PEPITOVADECURT wrote:
Is posible to assign a content from variable to a variable name?

Example in series:

0058.00 C MOVE 'DS1' SSS 3
0059.00 C Z-ADDO6ICAG SSS,1
0060.00 C Z-ADDO6IICD SSS,2
0061.00 C Z-ADDO6ICEE SSS,3
0062.00 C Z-ADDO6IMCE SSS,4
0063.00 C Z-ADDO6IOCE SSS,5
0064.00 C Z-ADDO6IREN SSS,6 0065.00 C MOVE 'DS2' SSS 3
0066.00 C Z-ADDO6ICAG SSS,1
0067.00 C Z-ADDO6IICD SSS,2
0068.00 C Z-ADDO6ICEE SSS,3
0069.00 C Z-ADDO6IMCE SSS,4
0070.00 C Z-ADDO6IOCE SSS,5
0071.00 C Z-ADDO6IREN SSS,6

*** Compile error



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.