BrianGarland / vscode-rpgfree

Visual Studio Code extension to convert fixed format RPGLE to free format
MIT License
18 stars 11 forks source link

Convert to free format issues #96

Open Alastyr opened 9 months ago

Alastyr commented 9 months ago

Hi everyone, this variable declaration is not converted correctly.

D QprObj a len(500000) varying

QprObj Varchar() LEN(500000);

image

image

Same for

D QvgTagRowSql s 500000a varying(4) inz('')

dcl-s QvgTagRowSql Varchar(500000) (4) INZ('');

Even more, blank spaces is not removed.

expected: QprObj varchar() len(500000)

got: QprObj Varchar() LEN(500000)

bobcozzi commented 1 week ago

The correct conversion would be: QprObj varchar(500000) inz(''); Although the INZ keyword is redundant in this case and unneeded.