Download SAS Data Integration Studio 3.4: User's Guide

Transcript
Working with External Files
Additional Information
135
Overriding the Code Generated by the External File Wizards
Problem
You want to substitute your own SAS INFILE statement for the code that is
generated by the Delimited External File wizard and the Fixed Width External File
wizard. For details about the SAS INFILE statement, see SAS Language Reference:
Dictionary.
Solution
Use the Override generated INFILE statement with the following
statement check box in the Advanced File Parameters window of the Source Designer
wizard.
Note: If you override the generated code that is provided by the external file
wizards and specify a non-standard access method such as PIPE, FTP, or a URL, then
the Preview button on the External File Location window, the File tab on the Columns
Definition window, and the Auto Fill button on the Columns Definition window will
not work. 4
Tasks
Replace a Generated SAS INFILE Statement
Perform the following steps to substitute your own SAS INFILE statement for the
code that is generated by the Delimited External File wizard and the Fixed Width
External File wizard.
1 Open the Source Designer selection window, and select either the Delimited
External File wizard or the Fixed Width External File wizard.
2 Specify the physical path for the external file and click Next. Either the
Parameters window or the Parameters/Delimiters window displays (depending on
the selected wizard.
3 Click the Advanced button to display the Advanced File Parameters window.
4 Select the Override generated INFILE statement with the following
statement check box. Then, paste your SAS INFILE statement into the text area.
5 Enter other metadata for the external file as prompted by the wizard.
Additional Information
For details about the effects of using overridden code with a non-standard access
method, see the "Accessing Data With Methods Other Than the SAS Application
Server" topic in SAS Data Integration Studio help.