Does RDi convert RPG fixed form code to free form?

1.7k Views Asked by At

In RDi, am looking to refactor some RPG code and right clicked on fixed definition of field, then 'Convert Selection To Free-Form'. Would you expect this action to convert the field definition to a free-form definition. I get a 'Conversion complete' message but nothing happens to the selected code.

Tried searching RDi help for this action but couldn't find anything that provides a clear answer. Google turned up this and this. Who knew you could do that with RPG IV book has this.

2

There are 2 best solutions below

0
On BEST ANSWER

RDi's fixed to free form converter only works on code (c-specs).

It's also just a very basic converter, for example it doesn't convert MOVE to EVAL.

If you want a more full function converter, take a look at Linoma's RPG Toolbox or Arcad's Transformer

There's also Craig Rutledge's open source conversion tools.

0
On

These days there is a very nice converter packaged as a VS Code extension. It had been a standalone online app called rpgfreeweb, but that has been taken down. You can still host it yourself (i.e. run it locally) if you want.

People who program on IBM i but don't have RDi would do well to take a look at VS Code with the Code for IBM i extension. It's not as full-featured as RDi, but it's pretty impressive (and arguably better than RDi in some respects), and it's completely free.