[b]can you execute a dynamically created command in naturall on runtime.
qn1. i have a map called from a pgm. #ws-command := ‘reinput “error” mark 1 alarm’
how can i execute #ws-command on certain conditions.
qn2. can i SET KEY PF1 = ‘RUN ABC’ and the execute this from the program?
Hi!
INCLUDE will not work.
As I think, the only time Natural parses and interprets Statements is during CATATLOG, STOW or RUN.
I know 2 ways to use this “dynamic”:
Dynamic Soucecodegeneration (Filed(s) with name that starts with + in GDA; Saved program with this fields as Statments; Execute the saved Programm via “RUN”) - But this will Reset the CALL-Structure - Call Level will be 1. For example the REINPUT-statement will return Runtimeerror 1108.
We use this only for Debugging and Access to different Databases with the same Program.
Creating/Changing and Stowing Natural objects with Userexits - and then Calling them. I never tried this - and I see many troubles with it (NSC Restrictions, unique Programnames for differnt User/Sessions …)