Publishing Framework
RETRIEVE_FILE
Retrieves an external binary or text file from a package.
Syntax
CALL RETRIEVE_FILE(entryId, filename, rc);
- entryId
- Numeric, input.
Identifies the file entry.
- filename
- Character, input.
Specifies the name of the file or fileref, using the following syntax:
- FILENAME: external_filename
- FILEREF: SAS_fileref
- rc
- Numeric, output.
Receives a return code.
Details
Specifying "FILENAME:" (without a filename) applies to the
retrieved file the name of the original file, when that file was inserted in
the package.
The following example retrieves a binary file from a queue.
fname = "filename: /users/jsmith.bin";
CALL RETRIEVE_FILE(entryId, fname, rc);
|