Hello,
I am not sure that I understand fully how the following work together:
- method
- package
- thread
- data statement.
Please tell me where I am right and where I am wrong.
Please refer to the attached ds2 program.
1. There seems to be a strict sequence in which these are constructed/defined, declared/instantiated and finally executed.
method -> package -> thread -> data; Can there be situations where this sequence is different ?
2. The method ourGMP and the package work.pkg_05s08 are set up ( defined) in the first few lines of the attached program. The method is contained in the package.
3. In the second part of the program, the thread work.th_05s08 is defined using the "thread ..endthread" block syntax. Within this thread, the method and package defined above are declared/instantiated ( Is there a difference between declare and instantiate ? )
and then executed together in the statement :
GrossMargin = myPkg.ourGMP(GrossSales, CostofGoods);
4. In the final part of the program, the thread is executed in a data step. I am not sure why "data;" is used here and not "data _null_ " or even "data <datasetname> . I guess the <datasetname> option would be used if we were outputting a dataset name. Is this correct ?
Thanks.
Odesh.