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;
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;