Type : CREATION_INTERNE
The macro does not consume data from external sources or SAS libraries. It operates only on the parameters passed to it (`version` and `offset`), which are internal to the macro's execution.
| 1 | %macro AHGverCalc(version,offset); |
| 2 | %IF &offset=0 %THEN %let offset=-0; |
| 3 | %local left right; |
| 4 | %let left=%scan(&version,1); |
| 5 | %let right=%eval(%scan(&version,2)&offset); |
| 6 | %IF &right <=0 %THEN %let right=1; |
| 7 | &left..&right |
| 8 | %mend; |