RETRIEVE_FILE

Retrieves an external binary or text file from a package

Syntax

CALL RETRIEVE_FILE(entryId, filename, rc);

Required Arguments

entryId
identifies the file entry.
Type:Numeric, Input
filename
specifies the name of the file or fileref, using the following syntax:
  • FILENAME: external_filename
  • FILEREF: SAS_fileref
Type:Character, Input
rc
receives a return code.
Type:Numeric, Output

Details

Specifying "FILENAME:", without a filename, applies to the retrieved file the same name that was used when the file was initially inserted into the package.

Example: Using RETRIEVE_FILE

The following example retrieves a binary file from a queue.
fname = "filename: /users/jsmith.bin";
CALL RETRIEVE_FILE(entryId, fname, rc);