R/xport.character.R

xport.character <- function( value, width )
  {
    if(length(value)!=1) stop("Only a single character value is permitted: '", value, "'")

    if(is.na(value)) value <- ""
    
    .C("fill_character_field",
       value = as.character(value),
       width = as.integer(width),
       PACKAGE="SASxport"
       )

    .Call("getRawBuffer", PACKAGE="SASxport")
  }

Try the SASxport package in your browser

Any scripts or data that you put into this service are public.

SASxport documentation built on May 2, 2019, 4:51 p.m.