Macro XEDIT (from Fraktal SAS Programming): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
K |
||
Zeile 9: | Zeile 9: | ||
}} | }} | ||
− | + | {| class="wikitable" | |
− | + | ! Code executed | |
− | + | ! Function performed | |
− | + | |- | |
− | + | | | |
− | + | ;%MACRO xedit(xentry,xpath); | |
− | + | | | |
− | + | |- | |
− | + | | | |
− | + | :%LOCAL xpath; | |
− | + | | | |
− | + | |- | |
− | + | | | |
− | + | ;%IF %LENGTH(&XPATH.) = 0 %THEN %DO; | |
− | + | | | |
− | + | |- | |
+ | | | ||
+ | :%XSET(homeshare); | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | :%LET xpath = &HOMESHARE.; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;%END; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;%IF &XENTRY. ne %THEN %DO; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;filename path "&XPATH"; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | :DM "PGM"; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | :DM "inc path(&XENTRY.)"; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;%END; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;%ELSE %DO; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | :%XDIR(&HOMESHARE.); | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;%END; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;filename path clear; | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | ;%MEND xedit; | ||
+ | |} | ||
{{SeitenNavigation1 | {{SeitenNavigation1 |
Version vom 31. Juli 2014, 15:56 Uhr
Code executed | Function performed |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|