CALL Routines Syntax Listed by Category

Character

C

Name
Syntax and Description
CALL CATS(result <, item-1, …, item-n > );
Removes leading and trailing blanks, and returns a concatenated character string.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL CATT(result <, item-1, … item-n > );
Removes trailing blanks, and returns a concatenated character string.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL CATX(delimiter, result <, item-1 , … item-n > );
Removes leading and trailing blanks, inserts delimiters, and returns a concatenated character string.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL COMPCOST(operation-1, value-1 <,operation-2, value-2 …> );
Sets the costs of operations for later use by the COMPGED function
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL MISSING(varname1 <, varname2, ...> );
Assigns missing values to the specified character or numeric variables.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SCAN(< string > , count, position, length <, < charlist > <, < modifier(s) > > > );
Returns the position and length of the th word from a character string.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Character String Matching

C

Name
Syntax and Description
CALL PRXCHANGE (regular-expression-id, times, old-string <, new-string <, result-length
<, truncation-value <, number-of-changes > > >
>
);
Performs a pattern-matching replacement.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL PRXDEBUG (on-off);
Enables Perl regular expressions in a DATA step to send debugging output to the SAS log.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL PRXFREE (regular-expression-id);
Frees memory that was allocated for a Perl regular expression.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL PRXNEXT (regular-expression-id, start, stop, source, position, length);
Returns the position and length of a substring that matches a pattern, and iterates over multiple matches within one string.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL PRXPOSN (regular-expression-id, capture-buffer, start <, length > );
Returns the start position and length for a capture buffer.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL PRXSUBSTR (regular-expression-id, source, position <, length > );
Returns the position and length of a substring that matches a pattern.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Combinatorial

C

Name
Syntax and Description
CALL ALLCOMB(count, k, variable-1, ...,variable-n);
Generates all combinations of the values of variables taken at a time in a minimal change order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL ALLCOMBI(N, K, index-1, …, index-K, <, index-added, index-removed > );
Generates all combinations of the indices of objects taken at a time in a minimal change order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL ALLPERM(count, variable–1 <, variable–2 ... > );
Generates all permutations of the values of several variables in a minimal change order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL GRAYCODE(k, numeric-variable-1, ..., numeric-variable-n);
CALL GRAYCODE(k, character-variable <, n <, in-out > > );
Generates all subsets of items in a minimal change order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL LEXCOMB(count, k, variable-1, …, variable-n);
Generates all distinct combinations of the nonmissing values of variables taken at a time in lexicographic order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL LEXCOMBI(n, k, index-1, …, index-k);
Generates all combinations of the indices of objects taken at a time in lexicographic order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL LEXPERK(count, k, variable-1, …, variable-n);
Generates all distinct permutations of the nonmissing values of variables taken at a time in lexicographic order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL LEXPERM(count, variable-1 <, …, variable-N > );
Generates all distinct permutations of the nonmissing values of several variables in lexicographic order.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANCOMB(seed, k, variable-1 <, variable–2, ... > );
Permutes the values of the arguments, and returns a random combination of out of values.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANPERK(seed, k, variable-1 <, variable–2, ... > );
Permutes the values of the arguments, and returns a random permutation of out of values.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANPERM(seed, variable-1 <, variable–2, ... > );
Randomly permutes the values of the arguments.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Date and Time

Name
Syntax and Description
CALL IS8601_CONVERT( convert-from, convert-to, < from-variables > , < to-variables >,
< date-time-replacements >
Converts an ISO 8601 interval to datetime and duration values, or converts datetime and duration values to an ISO 8601 interval.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

External Files

Name
Syntax and Description
CALL MODULE(< cntl > ,module,arg-1,arg-2...,arg-n);
num=MODULEN(< cntl > ,module,arg-1,arg-2…,arg-n);
char=MODULEC(< cntl > ,module,arg-1…,arg-2,arg-n);
CALL MODULEI (< cntl > ,module arg-1,arg-2...,arg-n);
num=MODULEIN(< cntl > ,module,arg-1,arg-2...,arg-n)
char=MODULEIC(< cntl > ,module,arg-1,arg-2...,arg-n);
Calls a specific routine or module that resides in a shared executable library.
Product: Base SAS
Document: SAS 9.3 Companion for UNIX Environments

External Routines

Name
Syntax and Description
CALL MODULE(< cntl-string,> module-name <,argument-1, ..., argument-n > );
Calls an external routine without any return code.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Macro

C

Name
Syntax and Description
CALL EXECUTE(argument);
Resolves the argument, and issues the resolved value for execution at the next step boundary.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SYMPUT(argument-1,argument-2);
Assigns DATA step information to a macro variable.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SYMPUTX(macro-variable, value <,symbol-table > );
Assigns a value to a macro variable, and removes both leading and trailing blanks.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Mathematical

C

Name
Syntax and Description
CALL LOGISTIC(argument <, argument, ...> );
Applies the logistic function to each argument.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SOFTMAX(argument <,argument,…> );
Returns the softmax value.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL STDIZE(< option-1,option-2, …,> variable-1 <, variable-2, …> );
Standardizes the values of one or more variables.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL TANH(argument <, argument,... > );
Returns the hyperbolic tangent.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Random Number

C

Name
Syntax and Description
CALL RANBIN(seed,n,p,x);
Returns a random variate from a binomial distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANCAU(seed,x);
Returns a random variate from a Cauchy distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANEXP(seed,x);
Returns a random variate from an exponential distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANGAM(seed,a,x);
Returns a random variate from a gamma distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANNOR(seed,x);
Returns a random variate from a normal distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANPOI(seed,m,x);
Returns a random variate from a Poisson distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANTBL(seed,p1 ,...pi ,...pn ,x);
Returns a random variate from a tabled probability distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANTRI(seed,h,x);
Returns a random variate from a triangular distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL RANUNI(seed,x);
Returns a random variate from a uniform distribution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL STREAMINIT(seed);
Specifies a seed value to use for subsequent random number generation by the RAND function.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Sort

C

Name
Syntax and Description
CALL SORTC(variable-1 <, …, variable-n >);
Sorts the values of character arguments.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SORTN(variable-1 <, …, variable-n >);
Sorts the values of numeric arguments.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Special

C

Name
Syntax and Description
CALL POKE(source,pointer <,length > <,floating-point > );
Writes a value directly into memory on a 32-bit platform.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL POKELONG(source,pointer <,length > <,floating-point > )
Writes a value directly into memory on 32-bit and 64-bit platforms.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SLEEP(n <,unit > );
For a specified period of time, suspends the execution of a program that invokes this CALL routine.
Product: Base SAS
Document: SAS 9.3 Companion for UNIX Environments
CALL SLEEP(time);
Suspends the execution of a program that invokes this call routine for a specified period of time.
Product: Base SAS
Document: SAS 9.3 Companion for z/OS
CALL SLEEP(n <, unit >);
For a specified period of time, suspends the execution of a program that invokes this CALL routine.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SYSTEM(command);
Submits an operating environment command for execution.
Product: Base SAS
Document: SAS 9.3 Companion for UNIX Environments
CALL SYSTEM(command);
Submits an operating system command for execution.
Product: Base SAS
Document: SAS 9.3 Companion for z/OS
CALL SYSTEM(command);
Submits an operating environment command for execution.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL TSO(command);
Issues a TSO command or invokes a CLIST or a REXX exec during a SAS session.
Product: Base SAS
Document: SAS 9.3 Companion for z/OS

Variable Control

C

Name
Syntax and Description
CALL LABEL(variable-1,variable-2);
Assigns a variable label to a specified character variable.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL SET(data-set-id);
Links SAS data set variables to DATA step or macro variables that have the same name and data type.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference
CALL VNAME(variable-1,variable-2);
Assigns a variable name as the value of a specified variable.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference

Variable Information

Name
Syntax and Description
CALL VNEXT(varname <,vartype <, varlength > > );
Returns the name, type, and length of a variable that is used in a DATA step.
Product: Base SAS
Document: SAS 9.3 Functions and CALL Routines: Reference