Chapter Contents |
Previous |
Next |
SAS External File Class: _assign |
Syntax | |
Details | |
Example | |
See Also |
Syntax |
CALL SEND (extfile-object-id, '_assign', fileref<, pathname>); |
Argument | Type | Description |
---|---|---|
fileref |
C | specifies the fileref to assign to the external pathname |
pathname |
C | specifies an existing pathname to assign to the fileref. If pathname is blank or not specified, then the specified fileref is de-assigned. |
Details |
To assign a remote flat file on another host via the FTP-XX protocol, you must use the SCL FILENAME function. The _assign method will not assign filerefs to files on remote hosts.
Example |
This example creates a SAS External File object, EXTFILE; assigns the fileref, MYFILE, to the external file MYFILE.TEXT; and then initializes EXTFILE to MYFILE:
extfilec=loadclass ('SASHELP.FSP.EXTFILE.CLASS'); extfile=instance(extfilec); call send (extfile, '_assign', 'MYFILE', 'myfile.text');
See Also |
_setup.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.