Amadeus cookies policy - you'll see this message only once.

Amadeus use cookies on this website. They help us to know a little bit about you and how you use our website, which improves the browsing experience and marketing - both for you and for others. They are stored locally on your computer or mobile device. To accept cookies, continue browsing as normal. Or, go to the privacy policy for more information.

Creating an Output Data Set from a Format

Create a simple format in the work library:

Creating an Output Data Set from a Format image1

To output a format to a data set, use the CNTLOUT option with Proc Format, as shown below:

Program:

Creating an Output Data Set from a Format image2

Log:

Creating an Output Data Set from a Format image3

Note that the name of the format specified on the SELECT statement does not require a period.

Having output the format to a data set, you can use data step code to change the format definition in some way. Then simply re-create the Format by using the CNTLIN option on the Proc Format statement.