Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have query which outputs just only 4 records. I need those 4 rows to be saved into a variable. That variable I need to use inside for loop. Where based on that 4 records I need to run SQL scripts. I can load manually all those 4 tables, but i need to automate for avoiding future reworks.
Example:-
Query needs to run is SQL select TRANSID from grnhdr; This outputs 4 records as of now, which are A,B,C,D. Now I need to load workflow table of these, where it's table name is AWORKFLOW,BWORKFLOW,CWORKFLOW & DWORKFLOW. Likewise, each transid has a workflow table. I need to load all the tables, in a automate process.
Purpose:- In future if they add a new transid, that new transid's workflow also needs to be loaded.
How is it possible ?
I use something like that for generating several tables in a loop:
Hi @ManuelRühl ,
Thank you very much for your time and support.
Hi All,
I used the below script to achieve the final output;
I use something like that for generating several tables in a loop:
Hi @ManuelRühl ,
Thank you very much for your time and support.
Hi All,
I used the below script to achieve the final output;