BookmarkSubscribeRSS Feed
suksrr
SAS Employee
Hello

I've wondered this for a while now but does anyone know the difference between the "Source Informat" and the "Output Informat" when using the Import Data task in EG4.2 for example when reading in an Excel spreadsheet?

In the help it says: The Source Informat is the informat for reading in the data - that makes sense. The Output Informat is the informat to use when creating the output data set?? Why this is needed I am unsure? Or why would these be different?

Thanks in advance!
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
There is an INFORMAT statement which associates a "default INFORMAT" to use with inputting a SAS variable and then also there is any specified INFORMAT that is coded on the SAS INPUT statement.

I was unable to locate any SAS-hosted DOC (at the SAS support website - using the Google advanced search argument below) that mentions the exact phrase(s) you quoted, unfortunately. Suggest you might code both options/parameters with different INFORMAT values (for distinction) and observe what SAS code is being generated to get a clearer understanding.

Scott Barry
SBBWorks, Inc.

+"enterprise guide" +4.2 +informat +source +output site:sas.com
Flip
Fluorite | Level 6
I don't know where the informat of the output data would do anything in EG, but if you open that file in the VIEWTABLE window in SAS that is the informat that is recognized when entering new values.
ChrisHemedinger
Community Manager
The difference is this:

The source informat is used when reading the value from the Excel or text file. Use the proper INFORMAT to interpret the raw value from the data source into a column in your SAS data set.

The output informat is the INFORMAT that you want to associate with the column in your output data set. That INFORMAT would be the default INFORMAT used for future input operations (such as VIEWTABLE, as pointed out). Note that in the data grid within EG 4.2, the INFORMAT behavior is *not* used.

See http://susanslaughter.wordpress.com/2010/02/09/eg-4-2-tip-farewell-to-informats.

Chris
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2919 views
  • 1 like
  • 4 in conversation