Closed SundareshSankaran closed 10 months ago
First baby step: write a small piece of Python code to a temp file through SAS
SUCCESS: Baby step - python executed from a temp file to which some python code has been written.
SUCCESS: Baby step #2 - Python code written to temp file and then executed within a macro. Also demonstrated how Python code in a submit block within a macro fails (known, but to establish)
Temporary simple solution using Datalines
Datalines4 in this case.
Datalines resorted to. Continue to try and find a solution which outputs entire SAS code to replicate.
Datalines4 adopted for ver 1.0
Idea is as follows: proc python called within a macro does not execute code within a submit block. The step requires running proc python as part of execution code. Execution code is best run inside a macro so as to take advantages of other checks (an error flag, a trigger and condition).
Options:
Options are in order of preference. Strong no for #3 due to having to provide one more file for the user to remember to include.