=
Note: Conversion is based on the latest values and formulas.
Symput for Datetime variables - SAS Communities 17 May 2021 · Show us the LOG for this code (we need to see all of the log for this code, 100% of it, do not select parts of the log to show us and not show us other parts).
call symput with a do loop - SAS Support Communities 23 Oct 2018 · Also make sure to use the newer CALL SYMPUTX() function instead of the old CALL SYMPUT() function. Unless you really NEED to store non macro quoted trailing blanks into your macro variables. 2 Likes
Use a macro variable created with the CALL SYMPUT routine … 25 Apr 2023 · "The macro variable created by CALL SYMPUT can not be referenced inside the creating data step. But CALL EXECUTE, SYMGET and RESOLVE can be used to reference a macro variable with in the data step. " This is then followed up with "CALL EXECUTE statements get resolved first and then moved to the input stack while iterating the data step.
Solved: call symput - SAS Support Communities Re: call symput Posted 05-02-2012 11:03 AM (5062 views) | In reply to Mike_Davis hi ... you might also consider SYMPUTX to reduce the length of the macro variables, for example ...
call symputx vs. symput - SAS Support Communities 4 May 2022 · CALL SYMPUTX uses a field width of up to 32 characters when it converts a numeric second argument to a character value. CALL SYMPUT uses a field width of up to 12 characters. CALL SYMPUTX left-justifies both arguments and trims trailing blanks. CALL SYMPUT does not left-justify the arguments, and trims trailing blanks from the first argument …
When to use symput or symget? - SAS Communities 13 Mar 2012 · You use CALL SYMPUT (or better CALL SYMPUTX as it is more flexible) to create macro variables from data step values. You use SYMGET to get macro variable values. Usually you can just reference the macro variable instead. Here are some situations where you would want to use SYMGET.
call symput inside a macro? - SAS Communities 29 Jul 2014 · Really, I was just trying to avoid typing in "36.7665" every time I needed to use the overall mean and it was bothering me that the code wasn't working (in case I really needed to use this type of call symput inside a macro in the future). Thanks again for your help! Kelly
Solved: Call symput - Macro date? - SAS Support Communities 16 Oct 2018 · Solved: Hello: I would like to have create a system today format with YYYY_MM_DD. Something wrong with my code below, could someone help me to fix
Solved: Understanding Call Symput! - SAS Support Communities 4 Apr 2013 · Re: Understanding Call Symput! Posted 04-04-2013 10:19 AM (4422 views) | In reply to robertrao Yes macro variables ID1 and ID2 with the values F and M respecfively.
Solved: CALL SYMPUT vs CALL SYMPUTX - SAS Support … 20 Jul 2017 · CALL SYMPUT() and CALL SYMPUTX() will convert numbers to text using BEST12. format. If you want to preserve the format attached to a number then either convert it to character yourself or use the VVALUE() (or VVALUEX()) function to get the formatted value.