Link to home
Start Free TrialLog in
Avatar of JBart_17
JBart_17Flag for United States of America

asked on

free format Move *all

Is there a more modern way of accomplishing?  
RPG38 way:
C                     MOVE *ALL'_'   LINE  132

I hate variables defined within the code, so I do    

dline             s            132
c                   move      *all'_'       line        

I would just prefer not to use the MOVE operation.  I prefer using EVAL
Avatar of Barry Harper
Barry Harper
Flag of Canada image

Try
dline         s         132    INZ(*BLANKS)
or
c                   eval line = *BLANKS  

Barry
Avatar of JBart_17

ASKER

no I don't want to fill it in with  Blanks, I want to fill it in with a Under score.
so when i print my report  I can have a line bet ween the headings and my detail line.
 
 
ASKER CERTIFIED SOLUTION
Avatar of stevebowdoin
stevebowdoin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you I did not know, you could use the *all inside the inz key word. With that I assume *balnks or *zeros can also be used.
Thanks for teaching me something
How about:

C              eval           line = *all'_'

- Gary Patterson (check out my EE profile: https://www.experts-exchange.com/M_4382324.html)