Sponsored Links
Sponsored Link

sponsored links

Collapse

Announcement

Collapse
No announcement yet.

Maximum value using move

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

  • maortega
    started a topic Maximum value using move

    Maximum value using move

    Hello,

    I want to do something like this:

    MOVE '0000000000000000' MYFIELD

    But the Move command only lets me write '00000000'... how can i do this?

  • gcraill
    replied
    Re: Maximum value using move

    Originally posted by bryce4president View Post
    good to know. i think i want to start programming in free, but the other two guys in the office only code in fixed format, and the one will NEVER change.
    Just tell your co-workers that America is the "Land of the Free" and if they still ague ask to see their green cards

    GC

    Leave a comment:


  • bryce4president
    replied
    Re: Maximum value using move

    good to know. i think i want to start programming in free, but the other two guys in the office only code in fixed format, and the one will NEVER change.

    Leave a comment:


  • arrow483
    replied
    Re: Maximum value using move

    Originally posted by bryce4president View Post
    move *all'0' myfield


    I think that is right. its along the lines of what jamie is talkin about. but his won't work as is in RPG III. that is a /free way of doing it.

    I am correct right? /free is only ILE?
    You are correct that /free is only allowed in RPG-IV (aka RPG-ILE). However, the MOVE command will work in fixed-format. MOVE is not allowed in free-format

    Leave a comment:


  • maortega
    replied
    Re: Maximum value using move

    Ok, yes, JaimieF replies are for RPG ILE... the one from you Bryce is adecuated to RPG III, thanks a lot to both for the quick response!

    Leave a comment:


  • bryce4president
    replied
    Re: Maximum value using move

    move *all'0' myfield


    I think that is right. its along the lines of what jamie is talkin about. but his won't work as is in RPG III. that is a /free way of doing it.

    I am correct right? /free is only ILE?

    Leave a comment:


  • jamief
    replied
    Re: Maximum value using move

    bigstring = *all'0';

    eval somefield = *HIVAL


    eval somefield = *LOVAL

    Leave a comment:


  • maortega
    replied
    Re: Maximum value using move

    Thanks, can i use EVAL eventhough my rpg program is an RPG III ?

    I will use zeros for one field and '999999999' for another one.

    Leave a comment:


  • bryce4president
    replied
    Re: Maximum value using move

    are you just going to move all zeros? if so then you can do this...

    MOVE *ZEROS MYFIELD


    you can also do this...

    EVAL MYFIELD = 'STRING TEXT HERE'

    or

    EVAL MYFIELD = *ZEROS

    Leave a comment:

sponsored links

Collapse

Working...
X