Posted By

sarathannapareddy on 08/11/09


Tagged

difference call symput Routines SYMPUTX


Versions (?)

Call Sumput vs Call SymputX


 / Published in: SAS
 

URL: http://studysas.blogspot.com/2009/08/call-symput-vs-call-symputx.html

Call Symput:

Use CALL SYMPUT is you need to assign a data step value to a macro variable.

Syntax: Call Symput (“Macro variable”, character value)

The first argument to the Symput routine is the name of the macro variable to be assigned to the value from the second argument.

  1. The second argument is the character value that will be assigned to the macro variable. The second argument need to be always a character value or if a numeric value is to be used it should convert first into character variable before assigning it to macro variable. It may lead to problems, if you don�t do the conversion from numeric to character. In this case, SAS automatically converts numeric value of the variable to character value before assigning it to macro variable and prints a message in the LOG saying that conversion happened.
  2. read more at: http://studysas.blogspot.com/2009/08/call-symput-vs-call-symputx.html

Report this snippet  

You need to login to post a comment.