OK, I am trying to pass a dataset as a parameter
{datsetdefinedhere.i}
run MyProgram (input-output dataset mydataset by-reference)
When I do so, it says "You may not empty temp-table ... when TRACKING-CHANGES is true."
I am not doing a mydataset:empty-dataset in MyProgram so I am like Grrr.
MyProgram has it defined as:
{datsetdefinedhere.i}
define input-output parameter dataset for mydataset.
Is this possible? It seems ridiculous one cannot pass a dataset to another program.
Ah ha! It is defined in an include and there are includes in the includes... which "empty temp table ..." .
Put a conditional compile around them and it works!
Problem solved, just shoddy coding.
afraid passing datasets as parameters are perfectly possible, using by-reference is always welcome only you have to be aware you work on the same object and in your case there might well be temp-tables in it that have tracking-changes turned on so you kinda need to handle that :)
Ah ha! It is defined in an include and there are includes in the includes... which "empty temp table ..." .
Put a conditional compile around them and it works!
Problem solved, just shoddy coding.