Closed BrianGodsend closed 1 year ago
Wrong extension. You want vscode-rpgfree.
Sorry for the incorrect reporting.
Anyone accidentally stumbling on this should note that not only did I report this in the wrong project, but, it is a duplicate of issue number BrianGarland/vscode-rpgfree#48.
When a stand-alone or subfield is defined LIKE another variable, the length of the field can be incremented or decremented by including a
+n
or-n
value in the length position of the D-Spec. When converting these lines to **FREE, the+n
or-n
length is treated as the variable's field length, but should be moved to the optional second parameter of theLIKE()
function.Note that a leading
+
or-
on the length adjustment is required.Fixed form example:
After **FREE conversion:
For reference, I am running the latest version of VS Code on an up-to-date Windows 11 Pro 64-bit system. The Code for IBM i version is v2.0.2 and the RPGLE extension is v0.20.2.