Chapter Contents

Previous

Next
SAS Companion for UNIX Environments

Concatenating Filenames

You can concatenate filenames in the FILENAME, %INCLUDE, and INFILE statements. Concatenating filenames allows you to read those files sequentially.

FILENAME fileref ("pathname-1" ... "pathname-n");
%INCLUDE '("filename-1" ... "filename-n")';
%INCLUDE "('filename-1' ... 'filename-n')";
INFILE '("filename-1" ... "filename-n")';
INFILE "('filename-1' ... 'filename-n')";

You can enclose the pathnames in single or double quotes and separate them with commas or blank spaces. You can use the characters shown in Character Substitutions in Pathnames and the wildcards described in Using Wildcards in Pathnames (Input Only) to specify the pathnames.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.