ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Variable values to Variable

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Variable values to Variable

    Hi..

    I'd like to ask you that, is there anyway to make the variable values to be
    a variable it self?

    like i have a variable named : $DTA 10A
    when i give the $DTA = '$Var1'
    can i make the $Var1 to a variable with 10S ??? or perhaps refer it to another
    variable that has declare?

    Just currious to know if this can works... Thanks you

  • #2
    Re: Variable values to Variable

    I think i understand your question and I had to do this many years ago, so I
    used one rpg program to write a second...I wrote the variables with values as
    constants so that I didnt have to define length or type.

    once the program was written I compiled it and then called it.


    jamie
    Last edited by FaStOnE; February 24, 2006, 08:22 AM.
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Variable values to Variable

      I think i got what u explained, i'll try to find it


      Thx u

      Comment

      Working...
      X