CALL EXECUTE - How and Why - SAS
, ;inputdsn$char50.;callexecute( procprint ,,data=1,Ildsnll ; l~~ run; );cards; ;OnemightthinkwearetryingtoexecutePROCPR INTinaDATAstep, , , % 6 , ;lengthvar$9fnrt$15;ifn=1thencallexecute ( datatemp;infilein; [Iinput@3 );infilein;inputrectype$charl.@;ifrectyp e= V thendo;inputvar$fmt$;callexecute(varI]fm t);end;elseifr ectype= D thendo;callexecute( ;infileinfirstobs= IIput(~n_,~.)II;run;);stop;end;run; , , SYMPUT containslocalvariables,thenthenew SYMPUT variableisalsolocaltothisenvironmentothe rwisethevariablewillbeputinthefirstlocal environmentencounteredwithlocalvariables , ;inputname$value!$;callexecute( %global llname~l ; II %let Ilnamell= [1valueII ; );cards;abcxyz; ,notcompiletime;henceitisimportanttohide the% , , ; , ,macrosgenerateSAScode,henceitisbetterto useCALLEXECUTEtosendtheshortmessage, invokeamacro , ;mergeerrs(in=w)original;bybaseid;run;pr ocprintdata=w(obs=500);run;%Putseriouser rors-halting;endsas; ;seterrs(obs=1);callexecute( %fatalerr );run;Whathappens?]
CALL EXECUTE: How and Why H. Ian Whitlock, Westat Inc. Abstract CALL EXECUTE is a relatively new DATA step function which interacts with the SAS Macro Facility.
Download CALL EXECUTE - How and Why - SAS
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
Related search queries
Wedding Planner Guide, Introduction To Stock Options: The, Options, Call, Understanding Options, Call options, Put options, Questions? Options Options Transaction Policies, The Bible of Options Strategies, The Bible of Options Strategies The Definitive, For options, Scotiabank, Interest Rate Options, CME Group Options on Futures, CME Group, PUT AND CALL OPTIONS