Skip to content

RPG Processor Query - Data Structure Generation #457

@joeymayer

Description

@joeymayer

After a session at TechXchange I saw that the rpg processor can build a data structure off the query.

Current output example:
dcl-ds D1_foo;
bar1 varchar(35);
bar2 packed(8:2);
end-ds;

Is it possible to have the data type's output "like()"? (and maybe include a data structure template). That way if a data type changes slightly, the data structure isn't hardcoded.

Issue fix output example:

dcl-ds T_FOO extname('FOO') template end-ds; //Template to use the like
dcl-ds D1_foo;
bar1 like(bar1);
bar2 like(bar2); //prevents hardcoding
end-ds;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions